From the parent, force an iFrame to redirect the entire page

Posted by epotter on Stack Overflow See other posts from Stack Overflow or by epotter
Published on 2010-06-08T16:53:13Z Indexed on 2010/06/08 17:12 UTC
Read the original article Hit count: 151

Filed under:
|

My site has an iFrame that displays content from and second site. I don't control the second site. When a user clicks on a link in the iFrame, I want it to redirect the entire page, not just the iFrame.

I've seen solutions for doing this from the iFrame, but I need to do it solely from the parent. I'd prefer to do it in the code behind, but a javascript solution would be acceptable.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about iframe