Oggetto del menu HTML DOM
Oggetto Menu
L'oggetto Menu rappresenta un elemento HTML <menu>.
Nota: l'elemento <menu> NON è attualmente supportato in nessuno dei principali browser.
Accedi a un oggetto menu
Puoi accedere a un elemento <menu> usando getElementById():
var x = document.getElementById("myMenu");
Crea un oggetto menu
Puoi creare un elemento <menu> usando il metodo document.createElement():
var x = document.createElement("MENU");
Menu Proprietà oggetto
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 |
Proprietà ed eventi standard
L'oggetto Menu supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <menu>