Hi everybody,
I have a page in an iframe whose links open up to another targeted iframe and I am trying to have the browser not put an entry in the history list when this happens, so when they click the back button it wont affect the new location of the targeted iframe.
I have tried several different things using location.replace() and history.previous but nothing seems to do exactly what I am looking for.
If this may help, the last thing that I tried that almost worked was putting this:
<body onunload=”javascript:location.replace(this.href);”>
on the html of the new page being loaded
it did not put any entries in history for the iframe, but you would have to click the link twice, and it would open the wrong page in between.
I also tried something like this on the links:
<a onclick=”javascript:frames[‘mediaplayer’].location.replace(‘newlink.html’);”>
(mediaplayer is the name/id of the iframe the link are to open in)
but it was giving me an error saying it is not an object or is null
Hopefully someone can understand what I am saying and can give me a kick in the right direction.
If you need an example of the page I can put up links.
Thanks for any assistance, it is MUCH appreciated!