HTMLMenuElement
The HTMLMenuElement
interface provides special properties (beyond those defined on the regular HTMLElement
interface it also has available to it by inheritance) for manipulating <menu>
elements.
Constructor
-
Returns a newly constructed
HTMLMenuElement
.
Instance properties
Inherits properties from its parent, HTMLElement
, and its ancestors.
compact
Deprecated-
A Boolean value determining if the menu displays in a compact way.
type
Deprecated Non-standard-
Returns
context
if the menu is a context menu. This use of the<menu>
element has never been implemented widely and is now deprecated. label
Deprecated Non-standard-
A string associating the menu with a name, displayed when the menu is used as a context menu. This use of the
<menu>
element has never been implemented widely and is now deprecated.
Instance methods
Inherits methods from its parent, HTMLElement
, and its ancestors.
HTMLMenuElement
doesn't implement specific methods.
Specifications
Specification |
---|
HTML Standard # htmlmenuelement |
Browser compatibility
BCD tables only load in the browser