| 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 |
| |
| alt | complete | dynsrc | form | height |
| hspace | loop | lowsrc | name | src |
| start | type | useMap | vspace | width |
|
| |
| Object-Specific Methods |
| |
|
|
| |
| Object-Specific Event Handler Properties |
| |
| Handler | NN | IE | DOM | | onblur | n/a | 4 | n/a |
| onclick | 2 | 3 | 2 |
| onfocus | n/a | 4 | n/a |
| onmousedown | 4 | 4 | 2 |
| onmousemove | 6 | 4 | 2 |
| onmouseout | 6 | 4 | 2 |
| onmouseover | 6 | 4 | 2 |
| onmouseup | 4 | 4 | 2 |
|