The Menu object represents an HTML <menu> element.
Note: The <menu> element is currently NOT supported in any of the major browsers.
You can access a <menu> element by using getElementById():
var x = document.getElementById("myMenu");
You can create a <menu> element by using the document.createElement() method:
var x = document.createElement("MENU");
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 |
The Menu object also supports the standard properties and events.
HTML reference: HTML <menu> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!