Daily Tips- Tip #10 - How to disable browser's back button using javascript?

Wednesday, July 15, 2009


Actually you cant disable the browser's back button, but if you are navigating between 2 pages , then you can give this functionality between them. You have to give the code in the following in the 1st page.
You can do that in 2 ways, they are:

1. <body onLoad="history.go(+1)">

2. function noBack(){window.history.forward()}
noBack();
window.onload=noBack;




www.codecollege.NET

0 comments

Post a Comment

www.codecollege.NET

Blog Widget by LinkWithin