Latest web development tutorials

HTML DOM Menu objects

Menu Object

Menu object represents the HTML <menu> element.

Note: <menu> element is currently no major browsers support.

Object Access Menu

You can use getElementById () to access the <menu> element:

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

Create a Menu Object

You can use document.createElement () method to create a <menu> element:

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

Menu object properties

Attributes description
label Sets or returns the label attribute menu
type Sets or returns the type attribute value menu

Standard properties and events

Menu object also supports the standard attributes and events


related articles

HTML Reference Manual: HTML <the MENU> tag