Jump to content

Archived

This topic is now archived and is closed to further replies.

hellonoko

breaking out of iFrames with php

Recommended Posts

I am using a: header("Location: http://location.com"); call to redirect after a form is posted.

However the form page is within an iFrame and after the redirect the new web page is loaded within the iFrame rather than in the main page as i need it to be.

Is there anyway I can specify the target or can someone suggest a better way to break out of the iFrame.

Thanks

Share this post


Link to post
Share on other sites
You need to use javascript to do that.
check this page for details

http://www.w3schools.com/js/tryit.asp?filename=tryjs_breakout

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.