breaking out of a iframe

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

breaking out of a iframe

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

either a JS or target link can do it.. header() will not.
Post Reply