WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Menu Object


Menu Object

The Menu object speaks to a HTML <menu> element.

Note: The <menu> component is right now NOT bolstered in any of the major browsers.

Access a Menu Object

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

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

Create a Menu Object

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

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

Menu Object Properties

Property Description
label Sets or returns the estimation of the name characteristic of the menu
type Sets or returns the estimation of the sort characteristic of the menu

Standard Properties and Events

The Menu object likewise underpins the standard properties and events.