aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60050
    
  65

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.
 
Similar Threads
External .js files again
comment?
To Disable Back button in all the browsers
Can't include .js file on jsp page controlled by front controller servlet
multiple js and jsp