Javascript Reference
Categories: Obj_Button

javascript Obj_Button name

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

Read/Write  

This is the identifier associated with the element when used as a form control. The value of this property is submitted as one-half of the name/value pair when the form is submitted to the server. Names are hidden from user view, since control labels are assigned via other means, depending on the control type. Form control names may also be used by script references to the objects.

 
Example
 
document.forms[0].compName.name = "company";
 
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.