WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM MenuItem Object


MenuItem Object

The MenuItem Object is new in HTML5.

The MenuItem object speaks to a HTML <menuitem> element.

Note: The <menuitem> component is as of now Just upheld in Firefox.

Access a MenuItem Object

You can get to a <menuitem> component by utilizing getElementById():

var x = document.getElementById("myMenuItem");

Create a MenuItem Object

You can make a <menuitem> component by utilizing the document.createElement() method:

var x = document.createElement("MENUITEM");

MenuItem Object Properties

Property Description
checked Sets or returns whether the menu thing ought to be checked
command Sets or returns the estimation of the direction property of the menu item
default Sets or returns whether the menu thing ought to be the default command
disabled Sets or returns whether the menu thing ought to be disabled
icon Sets or returns a picture that speaks to the menu item
label Sets or returns the estimation of the mark characteristic of the menu item
radiogroup Sets or returns the estimation of the radiogroup characteristic of the menu item
type Sets or returns the estimation of the sort characteristic of the menu item

Standard Properties and Events

The MenuItem object likewise underpins the standard properties and events.