- Type: boolean
- Indicates whether the element is disabled or not. If this attribute is set, the element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and the
commandevent will not fire. In the case of form elements, it will not be submitted. Do not set the attribute to
true, as this will suggest you can set it to
falseto enable the element again, which is not the case.The
disabledattribute is allowed only for form controls. Using it with an anchor tag (an
<a>link) will have no effect.The element will, however, still respond to mouse events. To enable the element, leave this attribute out entirely.
- Visible controls have a
disabledproperty which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.
Inherited from XUL element
- Type: integer
- A value indicating the type of accessibility object for the element.