Page 1 of 1

breaking out of a iframe

Posted: Mon Feb 28, 2005 5:28 pm
by shiznatix
i have a header('location: http://www.sdfsd.com'); thing going on but i want it to break out of the iframe its in when it does that. any sugestions?

Posted: Mon Feb 28, 2005 5:33 pm
by Chris Corbyn
Not 100% but i'd write the URL you want to go to a JavaScript command to redirect the parent window instead of using header()...

Haven't thought the code up in my head so it might not work seamlessly :)

Posted: Mon Feb 28, 2005 5:41 pm
by feyd
either a JS or target link can do it.. header() will not.