HTML <menuitem> digita Attributo
Esempio
Un elemento <menuitem> di tipo "comando":
<menu>
<menuitem type="command" label="Save" onclick="save()">Save</menuitem>
</menu>
Definizione e utilizzo
L'attributo type specifica il tipo di comando/elemento di menu.
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente l'attributo.
Attribute | |||||
---|---|---|---|---|---|
type | Not supported | Not supported | Not supported | Not supported | Not supported |
Sintassi
<menuitem type="command|checkbox|radio">
Valori di attributo
Value | Description |
---|---|
command | Default. Specifies a normal command with an action |
checkbox | Specifies a command that can be toggled using a checkbox |
radio | Specifies a command that can be toggled using a radio button |
❮ Tag HTML <menuitem>