JenniferLawrence Posted June 13, 2015 Share Posted June 13, 2015 Hi, so I have an iframe that has links in it. I want the links to target the appropriate page and when the page is done executing, instead of redirecting inside the iframe and having the page in the iframe change, I want the parent page to refresh. index.php <---------------------------- page is done executing, redirect the actual page. Not the iframe | | v | iframe -----> links inside the iframes are clicked ---> actions with the links are done This is how I want it to perform. Can this be done? Link to comment https://forums.phpfreaks.com/topic/296797-is-it-possible-to-target-outside-of-an-iframe/ Share on other sites More sharing options...
NetGuru87 Posted June 14, 2015 Share Posted June 14, 2015 I am pretty sure that this is not possible for safety reasons. Link to comment https://forums.phpfreaks.com/topic/296797-is-it-possible-to-target-outside-of-an-iframe/#findComment-1513833 Share on other sites More sharing options...
JenniferLawrence Posted June 14, 2015 Author Share Posted June 14, 2015 I am pretty sure that this is not possible for safety reasons. Actually, it is possible. I solved my problem by appending the target="_parent" to the links inside the iframe. I controll both iframe and index.php so what about saftey reasons again? Link to comment https://forums.phpfreaks.com/topic/296797-is-it-possible-to-target-outside-of-an-iframe/#findComment-1513850 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.