Javascript Reference
Categories: SELECT

javascript SELECT form

@July 12, 2008, 4:49 a.m.
form Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  
  Read-only  

Returns a reference to the form element that contains the current SELECT element. When processing an event from this element, the event handler function automatically has access to the select element (as the event object's target or srcElement property). By reading the form property, the script can easily access other controls within the same form.

 
Example
 
var theForm = evt.srcElement.form;
 
Value

form element object reference.

 
Default

None.


Powered by Linode.