View Full Version : Back Button
esb01
06-28-2003, 04:39 PM
I'm not sure if this is right place for my question but...
I'd like to call the next page using onclick = "document.location..."
with the Browser's Back butoon disabled.
What should I do to accomplish that?
kansel
06-28-2003, 06:41 PM
window.location.replace(url) will replace the current page with url in the browser's history, essentially making the browser's back button useless. but it doesn't "disable" the back button.
onclick="window.location.replace('http://myserver.com/somepage.html')"
esb01
06-28-2003, 10:39 PM
thanks...
...but it doesn't work
even if window.location.replace(url2) makes the browser's back button useless, I can still access the url1 by typing the address in the address bar. I've tried it all locally (not from the server).
To make this scheme clearer - url1 gets Session("var"), url2 clears it. So everything is cool if url1 reloads from the server, but Back button kills me.
A1ien51
06-28-2003, 10:48 PM
Sounds like to me you have a problem with your server side code. You can expire the page with most server side languages. That would make the back button useless.
Also typing URL1 in is not the same as the back button.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.