Easy Tutorial
❮ Prop Pushbutton Name Prop Video Autoplay ❯

HTML DOM Menu Object


Menu Object

The Menu object represents the HTML <menu> element.

Note: The <menu> element is not currently supported by major browsers.

Accessing the Menu Object

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

Creating a Menu Object

You can create a <menu> element using the document.createElement() method:

Menu Object Properties

Property Description
label Sets or returns the label attribute of the menu
type Sets or returns the type attribute value of the menu

Standard Properties and Events

The Menu object also supports standard properties and events


Related Articles

HTML Reference: HTML <menu> Tag

❮ Prop Pushbutton Name Prop Video Autoplay ❯