|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is there a way to disable the back button on a browser?
|
|
#2
|
|||
|
|||
|
Hi there!
I´ve got no hint whether it is possible to disable the back-button explicitly. I´d either open a window without the navbar or try something with the window.history object. There is a function called location.replace. Mybe thats what you want. Have a look at: http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm take care Bjoern |
|
#3
|
|||
|
|||
|
I don't believe you can actually disable the 'Back' button. But you can delete the history object rendering the 'Back' button useless.
<a href="#" onclick="window.location.replace(url)"> This line of HTML code refreshes the current page AND deletes all history; so there's nothing to which to go back! |
|
#4
|
||||
|
||||
|
The window.location.replace() function doesn't seem to do much.
if you only have one page that is protected, that you don't want people 'backing' into, then it could work. basically it sends you back 2 pages, instead of just one. if anyone else has any ideas, please share. i guess opening a new window is the best way to go... ---John Holmes |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Disabling the Back button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|