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.

Edited by Jason28
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.