Click to See Complete Forum and Search --> : No Browser Back Button
xHalo79
07-10-2003, 10:35 AM
Ok, is there a way that you can have the browser's back button grayed out at all times.
I was thinking that if there was a way you could pop the entire history stack when a page was loaded this could be accomplished.
Can this be done through JavaScript?
Any other suggestions?
Thanks
Khalid Ali
07-10-2003, 10:46 AM
You can not disable "Back" button in browser with JavaScript.
You can not dump history entries using JavaScript.However History can be seen
by pressing
control + H
on the key board
freefall
07-10-2003, 10:48 AM
I'm sure that would really piss peole off if you just deleted their browser history... There's no way to do this with javascript, you can only go forward or backward, you cant write to the history
- Ian
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
xHalo79
07-10-2003, 11:29 AM
well unfortunately I'm doing this for a reason, but is there a way to access the history property and clear it?
"man", what will that code you pasted above do?
Thanks
requestcode
07-10-2003, 11:45 AM
that keeps your page from being cached so that every time you go to the page it has to load from the server. About the only thing I can think of is to use location.replace("somepage.html") That will replace the current page in history. When on "somepage.html" you will not go back to the previous page, but the one before it.
i thought it would help a little bit....