HTML DOM Menu Object

Menu object

The Menu object represents the HTML <menu> element.

Note:The <menu> element is not supported by any mainstream browser.

Access the Menu object

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

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

Create a Menu object

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

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

Menu Object Properties

Properties Description
label Sets or returns the value of the menu's label attribute.
type Sets or returns the value of the menu's type attribute.

Standard Properties and Events

Menu Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Reference Manual:HTML <menu> Tag