
code to disable back button of browser

<script language="JavaScript" type="text/javascript"> window.history.forward(1); </script>
by using the above code we can restrict the page by going back

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

sry friends, its not working........ I am working on an application. The logout does not actually ensure termination of session. for eg. after logout if back button is pressed the last viewed page is displayed and this can be viewed as a security threat. Can any one give me a solution. Thanks in advance!!
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.