Button : HTMLElement

A graphical button that can be "pressed" by a user.

Browser/User Agent Support

IEMozillaNetscapeOperaSafari
3.0+1.0+2.0+7.0+1.0+

Constructors

ConstructorIEMozillaNetscapeOperaSafari
Creates a new instance of a Button object.
3.0+1.0+2.0+7.0+1.0+
 

Properties

PropertyIEMozillaNetscapeOperaSafari
Event handler for when the button is clicked.
3.0+1.0+2.0+7.0+1.0+
 
Text that appears on the button.
3.0+1.0+2.0+7.0+1.0+
 

References

Form | HTMLElement | Input | Reset | Submit | HTMLInputElement

Availability

JavaScript 1.0 | enhanced in JavaScript 1.1 | W3C

Constructor Detail

Button Button()

Creates a new instance of a Button object.

Visibility
internal

Property Detail

static Function onclick

Event handler for when the button is clicked.

See Also

HTMLElement.onclick | EventListener | EventTarget | MouseEvent

Availability

JavaScript 1.0

String value

Text that appears on the button.