You can Disable the browsers’ back button if you want to prevent your users to go back for some reasons like the registration page or for some pages once they are submitted should not be reversed back, which might lead into unwanted problems .

There is a little hack to achieve this, you can use the following js code.

It works but i want to know tat wat shud be the modified version of d above code if i dont want to replace any URL n want my page whose back button is 2 b disabled to be the same page after pressing back button? i dont want to go to ne other page but be in da same page.