Javascript Reference
Categories: InputTypeButton

javascript InputTypeButton Description

@Aug. 17, 2009, 9:46 a.m.
input (type="button") Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

 

  

The button object is a form control generated with an input element whose type attribute is set to "button". The button's text label comes from its value attribute and property. This element is similar to, but differs from, the button element.

 
HTML Equivalent
 
<input type="button">
 
Object Model Reference
 
[window.]document.formName.elementName
[window.]document.forms[i].elements[i]
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
dataFld dataSrc form name type value
 
Object-Specific Methods
 
createTextRange( ) handleEvent[ ]
 
Object-Specific Event Handler Properties
 
Handler Firefox/Netscape/NN IE Chrome/Safari/DOM
onblur 6 4 2
onclick 2 3 2
onfocus 6 4 2
onmousedown 4 4 2
onmousemove 6 4 2
onmouseout 6 4 2
onmouseover 6 4 2
onmouseup 4 4 2

Powered by Linode.