Bookmark Topic Watch Topic
  • New Topic

Disable the functionality of the back button in all browsers.

 
Dev Anand
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Report post to moderator
I'm using the following javascript in all my Html n Jsp pages. It works fine only in IE, in all the remaining browsers it is not working.

-----------code start--------------

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

-------------code end---------------

How to achieve this in all the browsers?

Regards
Dev Anand .P
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64962
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
You never responded to the response here: http://www.coderanch.com/t/461798/HTML-JavaScript/Disable-Back-button-all-browsers

 
    Bookmark Topic Watch Topic
  • New Topic