title: Link in iframe has been clicked — getting it's location
body: <p>My aim is building prototype of something more like a browser. Basically: address bar is always on top and it is sending queries to search engines and open links in an area right under it.</p>
  
  <p>I've taken the following path: having an address bar as a regular div and placing content opening with queries to the iframe, placed right under "address bar".</p>
  
  <p>If someone knows a better solution of this problem, I would love to hear it.</p>
  
  <p>Due to same-origin policy we can't get any data from this iframe. So I've managed to send separate query using PHP curl parsing whole page and get the Title, yay!</p>
  
  <p>Now something I just can't do: I need to get the location of the link, clicked in iframe. It doesn't matter how will it work, and it can be any kind of trick or crutch or whatever.</p>
  
  <p>May be it is impossible, but, probably, anyone has any clue?</p>
  
  <p>Thanks.</p>