Disable browser back button using JavaScript

Share:
A web browser has back and forward buttons to navigate between web pages, whose URLs are stored in the browser's history.

When you are using web forms and authenticated pages you don't want the end user to use back button. Another problems is re submission of web form data, which might create duplicate entries.
The best is always try to use server side validations as client side validation may fail or can be altered.

But if you still want to use something on client side then this script is for you:

Hi! I am Sartaj Husain. I am a Professional Software Developer, live in Delhi. I write blogs in my free time. I love to learn and share the knowledge with others because it is no good to try to stop knowledge from going forward. So free posts and tutorials. more..

No comments