File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Disable the functionality of the back button in all browsers. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

Disable the functionality of the back button in all browsers.

Dev Anand
Ranch Hand

Joined: Aug 30, 2009
Posts: 41
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

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You never responded to the response here: http://www.coderanch.com/t/461798/HTML-JavaScript/Disable-Back-button-all-browsers

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disable the functionality of the back button in all browsers.