Obiekt menu HTML DOM
Obiekt menu
Obiekt Menu reprezentuje element HTML <menu>.
Uwaga: Element <menu> NIE jest obecnie obsługiwany w żadnej z głównych przeglądarek.
Uzyskaj dostęp do obiektu menu
Możesz uzyskać dostęp do elementu <menu> za pomocą getElementById():
var x = document.getElementById("myMenu");
Utwórz obiekt menu
Możesz utworzyć element <menu> za pomocą metody document.createElement():
var x = document.createElement("MENU");
Właściwości obiektu 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 |
Standardowe właściwości i zdarzenia
Obiekt Menu obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: tag HTML <menu>