Javascript Reference
Categories: FORM

javascript FORM name

@March 15, 2008, 1:22 a.m.
nameFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read/Write  

This is the identifier associated with the form. This information is not submitted with the form, but a form's name is used in references to the form and nested form elements. Despite the modern standards' preference for the id attribute, many browsers still require that a form be assigned a name attribute to allow the form to be submitted.

 
Example
 
var firstFormName = document.forms[0].name;
 
Value

Case-sensitive identifier that follows the rules of identifier naming: it may contain no whitespace, cannot begin with a numeral, and should avoid punctuation except for the underscore character.

 
Default

None.


Powered by Linode.