B M Suchitra

B M Suchitra

  • NA
  • 507
  • 418.7k

How to disable browser back button in asp.net?

Jan 16 2012 5:35 AM
Hi,

After user has logged out i am redirecting user to home.aspx and from here i do not want user to be able to go back using browser back button.. How can i do it? I used this code in javascript :

<script type="text/javascript">
    javascript:window.history.forward(1);
</script>


This does not work for me. In all pages i am using Master Pages..
Thanks for the help in advance

Answers (9)