Hi
This is my first mail to this forum. Only two days before I subscribed to this mailing
list. Here is a tricky solution to your problem.
<script language=JavaScript>
window.history.forward(1);
</script>
This will disable the browser menu back button as well as the back menuitem of the
popup.
Try doing it.....
cheers
Thanks & Regards
Bhushan Bhangale
http://www.bbhangale.com
> this function disables right-click BACK, not Back button on the Browser.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sandarbh Sharma
> Sent: Tuesday, January 02, 2001 11:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to disable Back on Browser?
>
>
> <script language=JavaScript>
> var message="Sorry, right click function disabled";
> function click(e) {
> if (document.all) {
> if (event.button==2||event.button==3) {
> alert(message);
> return false;
> }
> }
> if (document.layers) {
> if (e.which == 3) {
> alert(message);
> return false;
> }
> }
> }
> if (document.layers) {
> document.captureEvents(Event.MOUSEDOWN);
> }
> document.onmousedown=click;
> // -->
> </script>
Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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