Hi,
This is really a very famous issue that can be found in various issues,
which can be tackled by an innumerable number of ways:
(*) At the top of all pages where you would like your back button to get
disabled of its functionality, just plugin the code:
<Script Language="JavaScript">
//Strictly speaking, this always tries to move the browser document one
location forward. The first time the page loads, there is nothing in the
history.forward stack and hence this is ignored. But when the browser clicks
the back button, there is something in the forward stack, which gets
activated.
history.go(1);
</Script>
(*) Expire Pages by Http-Equiv Meta Tag.
(*) Open a custom window, with no toolbar and disable context menu.
deepak@c...
----- Original Message -----
From: "JavaScript HowTo digest" <javascript_howto@p...>
To: "javascript_howto digest recipients" <javascript_howto@p...>
Sent: Saturday, December 29, 2001 5:32 AM
Subject: javascript_howto digest: December 28, 2001
>
> Subject: disable back button
> From: "sriram" <sriram@p...>
> Date: Thu, 27 Dec 2001 10:40:27 +0530
> X-Message-Number: 1
>
> dear sir,
> we have an application done through JSP and it uses Tomcat3.2.1 as web
> server, we have a problem ,like after exiting from the application when
the
> user clicks the back button it just puts the pages from the cache instead
of
> contacting the server,moreover we have all posssible the no cache
> statements in the jsp code through header,
> so i wud like to know wether we can disable the browsers back button after
> the exit has been pressed.
> looking forward to ur reply
> thank you
> sriram
>