X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Menu Object


Menu Object

The Menu object represents an HTML <menu> element.

Note: The <menu> element is currently NOT supported in any of the major browsers.

Access a 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 value of 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 standard properties and events.


Related Pages

HTML reference: HTML <menu> tag



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook