YouTip LogoYouTip

Dom Obj Menu

# HTML DOM Menu Object * * * ## Menu Object The Menu object represents the HTML `` element. **Note:** The `` element is currently not supported by major browsers. ### Accessing the Menu Object You can access the `` element using `getElementById()`: ```javascript var x = document.getElementById("myMenu"); ### Creating a Menu Object You can create a `` element using the `document.createElement()` method: ```javascript 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 type attribute value of the menu | ## Standard Properties and Events The Menu object also supports standard (#) and (#) * * * ## Related Articles HTML Reference: [HTML `` tag](#)
← Dom Obj MenuitemProp Map Name β†’