How do I get the current location of an iframe?

Posted by studiothat on Stack Overflow See other posts from Stack Overflow or by studiothat
Published on 2008-09-04T18:07:48Z Indexed on 2010/06/11 13:12 UTC
Read the original article Hit count: 238

Filed under:
|
|
|

I have built a basic data entry application allowing users to browse external content in iframe and enter data quickly from the same page. One of the data variables is the URL. Ideally I would like to be able to load the iframes current url into a textbox with javascript. I realize now that this is not going to happen due to security issues.

Has anyone done anything on the server side? or know of any .Net browser in browser controls. The ultimate goal is to just give the user an easy method of extracting the url of the page they are viewing in the iframe It doesn't necessarily HAVE to be an iframe, a browser in the browser would be ideal.

Thanks, Adam

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript