HTML <menuitem> ketik Atribut

HTML <menuitem> tag

Contoh

Elemen <menuitem> dari tipe "perintah":

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

Definisi dan Penggunaan

Atribut type menentukan jenis item perintah/menu.


Dukungan Peramban

Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung atribut tersebut.

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

Sintaksis

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

Nilai Atribut

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> tag