javascript InputTypeImage Description

input (type="image")NN 6 IE 4 DOM 1  

  

The image-type input object is first and foremost a button-like form control element, but with several characteristics of an img element, as well. Its default behavior is that of a submit-type button. The coordinates of the mouse click within the image's rectangle are passed as form data (in the format elemName.x=65&elemName.y=44) when the form is submitted. Note that unlike most other input element types, this input type was not scriptable in early browsers. IE for Windows may not recognize a reference to this element via the enclosing form. Accessing the form via its ID is completely reliable, however.

 
HTML Equivalent
 
<input type="image">
 
Object Model Reference
 
[window.]document.formName.elementName
[window.]document.forms[i].elements[i]
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
altcompletedynsrcformheight
hspacelooplowsrcnamesrc
starttypeuseMapvspacewidth
 
Object-Specific Methods
 
handleEvent[ ]
 
Object-Specific Event Handler Properties
 
HandlerNNIEDOM
onblurn/a4n/a
onclick232
onfocusn/a4n/a
onmousedown442
onmousemove642
onmouseout642
onmouseover642
onmouseup442

1053,Nickname,Homepage or email,Comments here,Add comment