Jump to content

Prevent browser back in iframe


Jason28

Recommended Posts

I searched all over the internet and everyone has similar questions but not what I am looking for.  Those who did get a solution only received part of the code as they assumed the person was an expert in javascript.  I suck at javascript so I couldn't make it work.  I have links on a webpage and when you click on the links it displays the page in an iframe.  When you use the browser's back window it causes the info in the iframe to go back instead of the main page.  How do I make it so that the main page goes back and not the iframe?  I tried using header codes to not cache the iframe page but it doesnt work.  OH and please no heavy Jquery, I imagine something simple can prevent this.  Thanks.

Link to comment
https://forums.phpfreaks.com/topic/284237-prevent-browser-back-in-iframe/
Share on other sites

Archived

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

×
×
  • Create New...

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.