This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 60785
    
  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
Can't include .js file on jsp page controlled by front controller servlet
multiple js and jsp
comment?
To Disable Back button in all the browsers
External .js files again