disabled attribute stops the user from interacting
form control. In this case, it stops the user
clicking on the
button, or tabbing to it using the
keyboard—it prevents the user from activating the control.
likely use for this attribute is to disable a
until such a time as some other condition has been met (for instance, a
checkbox is ticked to confirm the acceptance of terms and conditions). At
"disabled" value and make the form control
disabledattribute used in this code will stop the
buttonfrom being usable:
<form> <button accesskey="s" disabled="disabled">I am <em>really</em> sure I want to proceed [accesskey = s]</button> </form>
The only value this attribute can
It causes no compatibility issues, and has excellent support across all tested browsers.