HTML <menuitem>タイプ属性

❮HTML<menuitem>タグ

タイプ「コマンド」の<menuitem>要素:

<menu>
<menuitem type="command" label="Save" onclick="save()">Save</menuitem>
</menu>

定義と使用法

type属性は、コマンド/メニュー項目のタイプを指定します。


ブラウザのサポート

表の数字は、属性を完全にサポートする最初のブラウザーバージョンを示しています。

Attribute
type Not supported Not supported Not supported Not supported Not supported

構文

<menuitem type="command|checkbox|radio">

属性値

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

❮HTML<menuitem>タグ