 |
JavaScript Buttons





The most commonly used GUI control is the general purpose button. The button object is a property of the from object. The button object itself has many properties and methods. The properties of the button object are listed below:
| Property | Value | Description |
| name |
String |
Identifies the button's name attribute. |
| type |
String |
Identifies the object's type |
| value |
String |
Identifies the object's value |
The methods supported by the button object are:
| Method | Description |
| click() |
Simulates the button being clicked |
| blur() |
Removes the focus from a button |
| focus() |
Gives focus to the button |
Some of the event handlers supported by the button object are the following;
onBlur
onClick
onFocus
onMouseDown
onMouseUp
Domain Name Search
|