On Thu, 2003-06-12 at 10:04, Andrew Jorgensen wrote:
> > Technically, it should be form.submit().  It will probably work fine as
> > just submit(), but you may have better browser compatibility with
> > form.submit().
> 
> Shouldn't it only be form.submit() if the form happens to be named "form"?

No, form is a property of any form element, that points to the parent
form.  The select box does NOT have a submit() method, the form does. 
So just calling submit() from the select is incorrect.

If the form was named "myform", then you could also call it with
document.myform.submit().  Putting myform.submit() would not necessarily
work, depending on the browser, where the call is made from, etc.

BTW, I have an application with heavy javascript usage.  It works great
in Mozilla, but in IE it occasionally gets random errors that make no
sense whatsoever.  I hate IE...

Steve


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to