The best HTML DOM MenuItem objects Tutorial In 2024, In this tutorial you can learn MenuItem objects,MenuItem object properties,Standard properties and events,related articles,
MenuItem object represents the HTML <menuitem> element.
Note: Currently only Firefox browsers support <menuitem> element.
You can use getElementById () to access the <menuitem> element:
You can use document.createElement () method to create <menuitem> element:
Property | description |
---|---|
checked | Sets or returns whether the menu item should be checked |
command | Sets or returns the menu item command value of the property |
default | Sets or returns whether the menu item should be the default command |
disabled | Sets or returns whether the menu item is disabled |
icon | Sets or returns on behalf of a menu item image |
label | Sets or returns the label property of menu items |
radiogroup | Sets or returns radiogroup property of menu items |
type | Sets or returns the type property of menu items |
MenuItem objects also supports the standard attributes and events
HTML Reference Manual: HTML <menitemu> tag