Html5 Command Disabled Attribute Tag

The command disabled tag is use to command for disable and it will be disable if this attribute is present.which is identify if the command is available or not.command disabled attribute tag value is disabled.

Syntax:

<command disabled="disabled">

Example Code

<!DOCTYPE HTML>
<menu>
  <command onclick="alert('This is command disabled attribute button!')" disabled="disabled"> Click This ! </command>
</menu>

Out Put :



Click This!

In the above example disabled = "disabled" is a command button disable tag.





Content