Click here to Skip to main content
14,921,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used code as follows
XML
<script type="text/javascript" language="javascript">
       function DisableBackButton() {
           window.history.forward()
       }
       DisableBackButton();
       window.onload = DisableBackButton;
       window.onpageshow = function (evt) { if (evt.persisted) DisableBackButton() }
       window.onunload = function () { void (0) }
   </script>


and

XML
<script type="text/javascript">
      'toolbar=no,location=no,menubar=no,scrollbars=yes');
      
       function disableBackButton() {
           debugger;
           window.history.forward();
       }
       setTimeout("disableBackButton()", 0);
   </script>
Posted

1 solution

Got any error? any other details?
Here working version with detailed explanation
Browser back button issue after logout[^]
   
Comments
Sunil_Patil 9-Oct-13 1:09am
   
Hi Thanks i tried ur all 5 ways to disable back button non of them working ..i using fiefox 24.0 and ie 9

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900