HTML DOM 메뉴 객체
메뉴 개체
Menu 객체는 HTML <menu> 요소를 나타냅니다.
참고: <menu> 요소는 현재 주요 브라우저에서 지원되지 않습니다.
메뉴 개체에 액세스
getElementById()를 사용하여 <menu> 요소에 액세스할 수 있습니다.
var x = document.getElementById("myMenu");
메뉴 개체 만들기
document.createElement() 메서드를 사용하여 <menu> 요소를 만들 수 있습니다.
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 |
표준 속성 및 이벤트
Menu 객체는 표준 속성 과 이벤트 도 지원합니다 .
관련 페이지
HTML 참조: HTML <menu> 태그