Disable Back button of Browser.

Use the following java script code for disabling the Back button of the Browser..


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


Comments

Author: Arvind kumar01 Jan 2010 Member Level: Gold   Points : 0

This is good and common code of javascript.

Author: akash a bhave01 Jan 2010 Member Level: Gold   Points : 0

That's great.



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: