View Full Version : how to disable back button??

04-12-2005, 07:11 AM

I want to disable my back in browser and also when i right click
on browser.
If any one know please help me..

Thanks :thumbsup:

04-12-2005, 08:21 AM
Hello sonal,

The best way I have done this in the past is to tell each page to go forward one place in the history when it is loaded. So that when the page loads, it will redirect to the page in front of it, and if there isn't a page in front of it, then nothing will happen.

Insert the following tag replacing your <body> tag:
<body onLoad="history.go(+1)">

Let me know how this goes.

Have a good day.