Thursday, December 20, 2012

How to disable Browser Back Button using Java Script ?

How to disable Browser Back Button using Java Script ?

To Disable the Browser Back Button you need to use java script code in your jsp page.

For example, You have PageA and PageB . You visited from PageA to PageB (PageA ==>  PageB).
Now you want to stop the user coming back to PageA(from PageB), Than you need to put the java script code into the jspx page(PageA).