Your example does not disable the back button, it just hide it. You can
still go back with keyboardcommands or right-click mouse.
Yuo don't want to use location.href, but submit a form. I don't understand
what you are trying to say. You can excecute the function like this...
<script language="javascript">
function myFunction()
{
if(document.myform.text != "")
{
document.myform.submit();
// or in your case
window.open or something...
}
return false; // Need to do this to not submit the form by the button...
}
</script>
<form name="myform">
<input type="text" name="mytext" size="10">
<input type="submit" value="submit" OnClick="return myFunction()">
</form>
Since I'm not sure what you're trying to do, I don't know if this may help
or not.... hopes it helps
// Jan Aren�
-----Ursprungligt meddelande-----
Fr�n: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]F�r Vibha Jindal
Skickat: den 24 oktober 2001 15:04
Till: [EMAIL PROTECTED]
�mne: Disable browser back
Hi ,
I want to disable my browse back, forward etc. menu buttons...
If I use the code :
open(location.href, 'windowName',
'toolbar=0,menubar=0,status=1,resizable=1,scrollbars=1')
and close the old window:
window.close();
it should work. I found this on teh net. But my problem is that I don't want
to specify a location.href but want to submit my form.
Can anyone help?
Regards,
Vibha
>
> ========================================================================
> ===
> 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://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com