As I have a requirement for disabling the browser back button for both IE and Firefox, for a specific page I need the back button to be disabled using JavaScript OR Server side code?
For example I have 4 pages (page1.aspx, page2.aspx, page3.aspx and page4.aspx) so when I come to page3.aspx the back button needs to be disabled.
I started using the below code but it works only for IE but not for Firefox:
<SCRIPT type="text/javascript"> window.history.forward(); function noBack() { window.history.forward(); } </SCRIPT> </HEAD> <BODY onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload=""> Note : Provide your comments by clicking beloe options! Thanks ! :)

0 comments:
கருத்துரையிடுக