> Hello!
>     Is it possible to disable the browser back button( using
> Javascript,etc.)?

No, you can't disable the back button. There is a read-only Javascript
attribute for getting access to the button, but you cannot disable it.

> Or atleat force execution of a user's function on
> click of browser
> back button? The problem is that I have a file on submit of
> which, I get a
> second file. But I don't want the user to resubmit the first file, by
> entering into it using the browser back button. Is setting a flag and
> checking it each time one enters the file, the only alternative.
> Thanx
> Divya.

You can try to turn caching off on the first page (say first.jsp) and at the
top check to make sure the first page is called from some other page
(index.jsp). If first.jsp is called from any other page besides index.jsp,
redirect and don't load the page. This of course assumes first.jsp at no
time gets cached on the user's machine.

                                                                ryan
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to