Click to See Complete Forum and Search --> : How to disable browser buttons with JS


Caliban
02-18-2003, 02:27 PM
Hi,
Is there any way to disable the browser's nav buttons (Back, Forward, Refresh) in order to restrict the user to use the nav buttons of the pages.

t.i.a.

Caliban

khalidali63
02-18-2003, 02:33 PM
No.You can not do that with JavaScript

Cheers

Khalid

jhize
07-07-2005, 12:02 PM
If you cannot disable refresh button with JS. How would you?

Caliban
07-07-2005, 12:35 PM
To open the page with the "window.open" JS command, like this:

window.open('myURL','myIdPage','location=no,menubar=no,toolbar=no,scrollbars=yes, and so on...')
or
window.showDialogWindow

Both window.open and window.showDialogWindow have the same funcionallity, but window.showDialogWindow opens a new browser window like a MODAL window (the focus is always on the modal window)

Thus, this is the "fast" way to open a browser window without menu, toolbar o nav buttons, to force the user to use your nav buttons.

I hope it works for y'all.

Regards,
CALIBAN