Javascript Reference
Categories: InputTypeImage

javascript InputTypeImage 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 control. The value of this property is submitted associated with click coordinate values (within the image's rectangle) when the form is submitted in the format elemName.x=65&elemName.y=44. These coordinates take the place of the value attribute and property of other types of input elements. Despite the modern standards' preference for the id attribute, many browsers still require that a form control be assigned a name attribute to allow the control's value to be submitted.

 
Example
 
document.orderForm.myButton.name = "Win32";
 
Value

Case-sensitive string 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.