Javascript Reference
Categories: Obj_Button

javascript Obj_Button type

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

Read-only  

Specifies whether the button element is specified as a button, reset, or submit style button.

 
Example
 
if (evt.target.type == "button") {
    // process button element
}
 
Value

One of the three constants (as a string): button | reset | submit.

 
Default

button


Powered by Linode.