Anchor tag from iframe to parent cross-domain/cross-browser
I'm not sure if this is even possible, but can a link that lives inside of an iFrame (on another domain) be used to access an anchor on its parent page?
For example:
Parent url: http://www.parenturl.com
Parent DIV to be targeted:<div id="anchortag">
iFrame url: http://www.iframeurl.com
Link inside of iframe:<a href="http://www.parenturl.com#anchortag"></a>
This method seems to work as expected in FF and Chrome but does not in Safari or IE. IE simply refreshed the开发者_如何学Python page when the link is clicked.
Is there any documented reason as to why IE would refresh and why this approach doesn't work?
精彩评论