How to Disable browser's back button Using Javascript
First of all, we strongly recommand not to disable Browser's back button.
If you need, please inform the user before doing this.
Below is the javascript code for disabling browser's back button.

By providing the above code, the user won't be able to come back to first page.
Hence its better to provide a message to the user before leaving the first page.
Message can be provided on the beforeUnload javascript function as shown below.
