Jason28 Posted November 25, 2013 Share Posted November 25, 2013 (edited) 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 November 25, 2013 by Jason28 Quote Link to comment https://forums.phpfreaks.com/topic/284237-prevent-browser-back-in-iframe/ Share on other sites More sharing options...
Jason28 Posted November 25, 2013 Author Share Posted November 25, 2013 Ah nevermind again I found it here this works: http://www.ozzu.com/programming-forum/ignoring-iframes-with-javascript-history-t67189.html Quote Link to comment https://forums.phpfreaks.com/topic/284237-prevent-browser-back-in-iframe/#findComment-1459904 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.