Button Object Examples: HTML DOM Button Object Examples – Javascript JS
Button Object Examples: HTML DOM Button Object Examples – Javascript JS
Purpose: – Illustrates the JavaScript syntax for working with the Button Object. The button object allows you to access properties related to buttons
Button Object Examples
| Standard Properties | |
| className | Allows you to access the class attribute of the button object. |
| dir | Allows you to access the direction of text attribute of the button object. |
| lang | Allows you to access the language attribute of the button object |
| title | Allows you to access the title attribute of the button object |
| Button Object Properties | |
| accessKey | Allows you to access the short-cut keyboard key attribute of the button. |
| disabled | Allows you to access the disabled attribute of the button. |
| form | Allows you to access to the form that contains of the button. |
| id | Allows you to access the id attribute of the button object |
| name | Allows you to access the name attribute of the button object |
| tabIndex | Allows you to access the tabbing order attribute of the button. |
| type | Allows you to access the type of the form element for the button. |
| value | Allows you to access to the text value of the button. |
