HTML DOM MenuObject
Menu Object
The Menu object represents an HTML <menu> element.
Note:The <menu> element is currently not supported by mainstream browsers.
Access the Menu Object
You can access a <menu> element by using getElementById():
var x = document.getElementById("myMenu");
Create a Menu Object
You can create a <menu> element by using the document.createElement() method:
var x = document.createElement("MENU");
Menu Object Properties
| Property | Description |
|---|---|
| label | Sets or returns the label attribute of the menu. |
| type | Sets or returns the value of the type attribute of the menu. |
Standard Properties and Events
The Menu object also supports the standardpropertiesandevents
Related Articles
HTML Reference Manual:HTML <menu> Tag
Other Extensions