Document 인터페이스는 브라우저가 불러온 웹 페이지를 나타내며, 페이지 콘텐츠(DOM 트리)의 진입점 역할을 수행합니다. DOM 트리는 <body><table>여러 다른 요소를 포함합니다. Document는 페이지의 URL을 얻거나 문서에 새로운 요소를 생성하는 등의 기능을 전역적으로 제공합니다.

Document 인터페이스는 모든 종류의 문서에 대한 공통의 속성과 메서드를 묘사합니다. 문서의 유형(HTML, XML, SVG 등)에 따라서 더 다양한 API가 존재합니다. 예컨대 "text/html" 콘텐츠 유형으로 제공되는 HTML 문서는 HTMLDocument 인터페이스도 구현하는 반면, XML과 SVG 문서는 XMLDocument 인터페이스를 구현합니다.

생성자

Document()
새로운 Document 객체를 생성합니다.

속성

DocumetNodeEventTarget 인터페이스도 상속합니다.

Document.anchors Read only
문서 내 모든 앵커의 목록을 반환합니다.
Document.body
현재 문서의 <body> 또는 <frameset> 노드를 반환합니다.
Document.characterSet Read only
문서에서 사용하는 캐릭터셋을 반환합니다.
Document.compatMode Read only
문서의 렌더링 모드가 Quirks와 Strict 중 어떤 것인지 반환합니다.
Document.contentType Read only
현재 문서의 MIME 헤더로부터 Content-Type을 반환합니다.
Document.doctype Read only
현재 문서의 문서 형식 정의Document Type Definition(DTD)를 반환합니다.
Document.documentElement Read only
문서의 직속 자식인 Element를 반환합니다. HTML 문서에서는 보통 <html> 요소를 나타내는 HTMLHtmlElement 객체입니다.
Document.documentURI Read only
문서의 위치를 문자열로 반환합니다.
Document.embeds Read only
현재 문서에 임베디드된 <embed> 요소 목록을 반환합니다.
Document.fonts
현재 문서의 FontFaceSet 인터페이스를 반환합니다.
Document.forms Read only
현재 문서의 <form> 요소 목록을 반환합니다.
Document.head Read only
현재 문서의 <head> 요소를 반환합니다.
Document.hidden Read only
현재 문서의 숨김 여부를 반환합니다.
Document.images Read only
현재 문서의 이미지 목록을 반환합니다.
Document.implementation Read only
현재 문서와 연관된 DOM 구현을 반환합니다.
Document.lastStyleSheetSet Read only
마지막에 활성화된 스타일 시트 세트의 이름을 반환합니다. selectedStyleSheetSet 값을 설정하여 스타일 시트가 변경되기 전에는 null 값을 갖습니다.
Document.links Read only
문서의 모든 하이퍼링크 목록을 반환합니다.
Document.mozSyntheticDocument
문서가 synthetic, 즉 단일 이미지, 비디오, 오디오 파일이나 이와 비슷한 것인 경우 Boolean true를 반환합니다.
Document.plugins Read only
사용 가능한 플러그인의 목록을 반환합니다.
Document.policy Read only
특정 문서에 적용되는 기능 정책을 자성하기 위한 간단한 API 를 제공하는 Policy 인터페이스를 반환합니다.
Document.preferredStyleSheetSet Read only
페이지 작성자가 지정한 선호 스타일 시트 세트를 반환합니다.
Document.scripts Read only
문서의 모든 <script> 요소를 반환합니다.
Document.scrollingElement Read only
문서를 스크롤 하는 Element에 대한 참조를 반환합니다.
Document.selectedStyleSheetSet
현재 사용 중인 스타일 시트 세트를 반환합니다.
Document.styleSheetSets Read only
문서에서 사용 가능한 스타일 시트 세트의 목록을 반환합니다.
Document.timeline Read only
Document.undoManager Read only
Document.visibilityState Read only
문서의 표시 상태를 나타내는 문자열을 반환합니다. 가능한 값은 visible, hidden, prerender, unloaded입니다.

Document 인터페이스는 ParentNode 인터페이스를 확장합니다.

ParentNode.childElementCount Read only
ParentNode가 가진 자식 중 요소의 수를 반환합니다.
ParentNode.children Read only
ParentNode가 가진 모든 자식 중 요소만 모은 HTMLCollection을 반환합니다.
ParentNode.firstElementChild Read only
ParentNode의 자식이자 Element인 객체 중 첫 번째를 반환합니다. 만족하는 자식이 없으면 null을 반환합니다.
ParentNode.lastElementChild Read only
ParentNode의 자식이자 Element인 객체 중 마지막을 반환합니다. 만족하는 자식이 없으면 null을 반환합니다.

HTMLDocument 확장

HTML 문서를 위한 Document 인터페이스는 HTML5 이전엔 HTMLDocument 인터페이스를 상속하고, 이후로는 확장합니다.

Document.cookie
문서의 쿠키 리스트를 세미콜론으로 분리해 반환하거나, 하나의 쿠키를 설정합니다.
Document.defaultView Read only
Window 객체의 참조를 반환합니다.
Document.designMode
문서 전체의 수정 가능 여부를 설정/반환합니다.
Document.dir
문서의 쓰기 방향(rtl/ltr)을 설정/반환합니다.
Document.domain
현재 문서의 도메인을 설정/반환합니다.
Document.lastModified Read only
문서가 마지막으로 수정된 날짜를 반환합니다.
Document.location Read only
현재 문서의 URI를 반환합니다.
Document.readyState Read only
문서의 불러오기 상태를 반환합니다.
Document.referrer Read only
현재 페이지로 연결한 페이지의 URI를 반환합니다.
Document.title
문서의 제목을 설정하거나 반환합니다.
Document.URL Read only
문서의 위치를 문자열로 반환합니다.

DocumentOrShadowRoot 로부터 포함된 속성

Document 인터페이스는 DocumentOrShadowRoot 믹스인mixin이 정의하는 다음의 속성을 포함합니다. 지금은 Chrome만 구현한 상태라는 점에 유의하세요. 다른 브라우저는 Document 인터페이스에 구현 중입니다.

DocumentOrShadowRoot.activeElement Read only
포커스를 가진 shadow 트리를 포함하는 Element 를 반환합니다.
Document.fullscreenElement Read only
다큐먼트에서 현재 전체 화면 모드인 엘리먼트입니다.
DocumentOrShadowRoot.pointerLockElement Read only
포인터가 잠긴 동안 마우스 이벤트를 위한 대상으로 설정된 엘리먼트를 반환합니다. 잠금이 대기 상태거나, 잠금이 해제되거나, 대상이 다른 다큐먼트에 있다면 null 을 반환합니다.
DocumentOrShadowRoot.styleSheets Read only
다큐먼트에 포함되었거나, 명시적으로 다큐먼트에 링크된 스타일시트를 위한 CSSStyleSheet 객체의 StyleSheetList 를 반환합니다.

이벤트 핸들러

Document.onafterscriptexecute
afterscriptexecute 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.onbeforescriptexecute
beforescriptexecute 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.oncopy
copy 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.oncut
cut 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.onfullscreenchange
fullscreenchange 이벤트가 발생할 때 호출되는 코드를 나타내는 EventHandler 입니다.
Document.onfullscreenerror
fullscreenerror 이벤트가 발생할 때 호출되는 코드를 나타내는 EventHandler 입니다.
Document.onpaste
paste 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.onpointerlockchange
pointerlockchange 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.onpointerlockerror
pointerlockerror 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.onreadystatechange
readystatechange 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.
Document.onselectionchange
selectionchange 이벤트가 발생할 때 호출되는 코드를 나타내는 EventHandler 입니다.
Document.onvisibilitychange
visibilitychange 이벤트가 발생할 때 호출되는 코드를 나타내는 EventHandler 입니다.
Document.onwheel
wheel 이벤트를 위한 이벤트 핸들링 코드를 나타냅니다.

Document 인터페이스는 GlobalEventHandlers 인터페이스를 확장합니다.

이 인터페이스는 아래에 나열된 이벤트 처리기를 위한 속성만을 갖습니다.

이벤트 처리기

다음 이벤트 처리기들은 GlobalEventHandlers 믹스인이 정의하고, HTMLElement, Document, Window와 웹 워커의 WorkerGlobalScope가 구현합니다.

GlobalEventHandlers.onabort
abort 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onanimationcancel
실행 중이던 CSS 애니메이션이 취소됐음을 알리는 animationcancel 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onanimationend
실행 중이던 CSS 애니메이션이 끝났음을 알리는 animationend 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onanimationiteration
실행 중인 CSS 애니메이션의 다음 회차 재생이 시작됐음을 알리는 animationiteration 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onanimationstart
CSS 애니메이션의 재생이 시작됐음을 알리는 animationstart 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onauxclick
마우스 휠 클릭 등 비주요 버튼이 눌렸음을 알리는 auxclick 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onblur
blur 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onerror
error 이벤트가 발생했을 때 호출할 코드를 나타내는 OnErrorEventHandler.
GlobalEventHandlers.onfocus
focus 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.oncancel
cancel 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.oncanplay
canplay 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.oncanplaythrough
canplaythrough 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onchange
change 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onclick
click 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onclose
close 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.oncontextmenu
contextmenu 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.oncuechange
cuechange 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondblclick
dblclick 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondrag
drag 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondragend
dragend 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondragenter
dragenter 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondragexit
dragexit 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondragleave
dragleave 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondragover
dragover 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondragstart
dragstart 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondrop
drop 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ondurationchange
durationchange 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onemptied
emptied 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onended
ended 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ongotpointercapture

gotpointercapture 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.

GlobalEventHandlers.oninput
input 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.oninvalid
invalid 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onkeydown
keydown 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onkeypress
keypress 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onkeyup
keyup 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onload
load 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onloadeddata
loadeddata 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onloadedmetadata
loadedmetadata 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onloadend
자원의 불러오기가 멈췄음을 나타내는 loadend 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onloadstart
자원을 불러오기 시작함을 나타내는 loadstart 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onlostpointercapture

lostpointercapture 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.

GlobalEventHandlers.onmousedown
mousedown 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onmouseenter
mouseenter 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onmouseleave
mouseleave 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onmousemove
mousemove 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onmouseout
mouseout 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onmouseover
mouseover 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onmouseup
mouseup 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onmousewheel
mousewheel 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler. onwheel을 대신 사용하세요.
GlobalEventHandlers.onwheel
wheel 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpause
pause 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onplay
play 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onplaying
playing 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerdown
pointerdown 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointermove
pointermove 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerup
pointerup 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointercancel
pointercancel 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerover
pointerover 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerout
pointerout 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerenter
pointerenter 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerleave
pointerleave 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerlockchange
pointerlockchange 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onpointerlockerror
pointerlockerror 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onprogress
progress 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onratechange
ratechange 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onreset
reset 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onresize
resize 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onscroll
scroll 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onseeked
seeked 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onseeking
seeking 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onselect
select 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onselectstart
사용자가 웹 페이지의 텍스트 등을 선택하기 시작함을 나타내는 selectionchange 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onselectionchange
웹 페이지의 선택 영역(텍스트 등)이 바뀌었음을 나타내는 selectionchange 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onshow
show 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onsort
sort 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onstalled
stalled 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onsubmit
submit 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onsuspend
suspend 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ontimeupdate
timeupdate 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onvolumechange
volumechange 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ontouchcancel
touchcancel 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ontouchend
touchend 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ontouchmove
touchmove 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ontouchstart
touchstart 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ontransitioncancel
CSS 트랜지션이 취소됐음을 알리는 transitioncancel 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.ontransitionend
CSS 트랜지션이 끝났음을 알리는 transitionend 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.
GlobalEventHandlers.onwaiting
waiting 이벤트가 발생했을 때 호출할 코드를 나타내는 EventHandler.

사용하지 않는 속성

Document.alinkColor
다큐먼트 바디에 있는 활성 링크의 색상을 설정하거나 반환합니다.
Document.all
다큐먼트의 모든 엘리먼트로의 접근을 제공합니다. 레거시이며 비표준 속성이므로 사용되면 안됩니다.
Document.applets Read only
다큐먼트에 있는 애플릿의 정렬된 리스트를 반환합니다.
Document.async
Document.load 와 사용되어 비동기 요청을 나타냅니다.
Document.bgColor
현재 다큐먼트의 배경 색상을 설정하거나 반환합니다.
Document.charset Read only
Document.characterSet 과 동일합니다. Document.characterSet 속성을 사용하시기 바랍니다.
Document.domConfig
DOMConfiguration 객체를 반환합니다.
document.fgColor
현재 다큐먼트의 foreground 색상이나 텍스트 색상을 설정하거나 반환합니다.
Document.fullscreen
다큐먼트가 full-screen mode에 있을 때 true 를 반환합니다.
Document.height
현재 다큐먼트의 높이를 설정하거나 반환합니다.
Document.inputEncoding Read only
Document.characterSet 과 동일합니다. Document.characterSet 속성을 사용하시기 바랍니다.
Document.linkColor
다큐먼트내 하이퍼링크의 색상을 설정하거나 반환합니다.
Document.vlinkColor
방문한 하이퍼링크의 색상을 설정하거나 반환합니다.
Document.width
현재 다큐먼트의 너비를 반환합니다.
Document.xmlEncoding
XML 선언으로 결정된 인코딩을 반환합니다.
Document.xmlStandalone 안씀 Gecko 10.0
XML 선언이 다큐먼트를 독립되도록 지정하면 true 를(예, DTD 의 외부가 다큐먼트의 컨텐츠에 영향을 줌), 그렇지 않은 경우 false 를 반환합니다.
Document.xmlVersion 안씀 Gecko 10.0
XML 선언에 명시된 버전 넘버를 반환합니다. 선언에 명시되어 있지 않은 경우, "1.0" 을 반환합니다.

메서드

DocumetNodeEventTarget 인터페이스도 상속합니다.

Document.adoptNode()
외부 문서로부터 노드를 가져옵니다.
Document.captureEvents()
Window.captureEvents를 확인하세요.
Document.caretRangeFromPoint()
지정한 좌표에 위치한 문서 조각에 대한 Range 객체를 반환합니다.
Document.createAttribute()
새로운 Attr 객체를 생성하고 반환합니다.
Document.createAttributeNS()
주어진 네임스페이스에 새로운 속성 노드를 생성하고 반환합니다.
Document.createCDATASection()
새로운 CDATA 노드를 생성하고 반환합니다.
Document.createComment()
새로운 주석 노드를 생성하고 반환합니다.
Document.createDocumentFragment()
새로운 문서 조각을 생성합니다.
Document.createElement()
주어진 태그명을 사용해 새로운 요소를 생성합니다.
Document.createElementNS()
주어진 태그명과 네임스페이스 URI를 갖는 새로운 요소를 생성합니다.
Document.createEntityReference()
새로운 개체 참조를 생성하고 반환합니다.
Document.createEvent()
이벤트 객체를 생성합니다.
Document.createNodeIterator()
NodeIterator 객체를 생성합니다.
Document.createProcessingInstruction()
새로운 ProcessingInstruction 객체를 생성합니다.
Document.createRange()
Range 객체를 생성합니다.
Document.createTextNode()
텍스트 노드를 생성합니다.
Document.createTouch()
Touch 객체를 생성합니다.
Document.createTouchList()
TouchList 객체를 생성합니다.
Document.createTreeWalker()
TreeWalker 객체를 생성합니다.
Document.enableStyleSheetsForSet()
지정한 스타일 시트 세트의 스타일 시트를 활성화합니다.
Document.exitPointerLock()
포인터 잠금을 해제합니다.
Document.getAnimations()
문서의 자손 요소를 대상으로 하고, 현재 실행 중인 모든 Animation 객체를 배열로 반환합니다.
Document.getElementsByClassName()
주어진 클래스 이름을 갖는 요소의 목록을 반환합니다.
Document.getElementsByTagName()
주어진 태그명을 갖는 요소의 목록을 반환합니다.
Document.getElementsByTagNameNS()
주어진 태그명과 네임스페이스를 갖는 요소의 목록을 반환합니다.
Document.hasStorageAccess()
문서가 퍼스트파티first-party 저장소에 접근할 수 있는지 나타내는 Boolean으로 이행하는 Promise를 반환합니다.
Document.importNode()
외부 문서의 노드 복제본을 반환합니다.
Document.normalizeDocument()
개체 대체, 텍스트 노드 정규화 등의 작업을 실행합니다.
Document.releaseCapture()
문서의 요소에 현재 마우스 캡쳐가 있다면 이를 해제합니다.
Document.releaseEvents()
Window.releaseEvents()를 확인하세요.
Document.requestStorageAccess()
퍼스트파티first-party 저장소로의 접근이 가능한 경우 이행하고 불가능한 경우 거부하는 Promise를 반환합니다.
Document.routeEvent() 안씀 Gecko 24
Window.routeEvent()를 확인하세요.
Document.mozSetImageElement()
지정한 요소 ID를 위한 배경 이미지로 사용되도록 요소 변경을 허용합니다.

Document 인터페이스는 ParentNode 인터페이스를 확장합니다.

document.getElementById()
주어진 ID를 가진 요소의 참조를 반환합니다.
document.querySelector()
문서 내에서 주어진 선택자를 만족하는 첫 번째 Element를 반환합니다.
document.querySelectorAll()
주어진 선택자를 만족하는 모든 요소의 NodeList를 반환합니다.

Document 인터페이스는 XPathEvaluator 인터페이스를 확장합니다.

document.createExpression()
나중에 (여러 번) 평가할 수 있도록 XPathExpression을 컴파일합니다.
document.createNSResolver()
XPathNSResolver 객체를 생성합니다.
document.evaluate()
XPath 표현을 평가합니다.

HTML 문서의 확장

HTML 문서를 위한 Document 인터페이스는 HTML5 이전엔 HTMLDocument 인터페이스를 상속하고, 이후로는 확장합니다.

document.clear()
최근의 Firefox와 Internet Explorer를 포함하는 주요 최신 브라우저에서, 이 메소드는 아무것도 하지 않습니다.
document.close()
작성을 위한 문서 스트림을 닫습니다.
document.execCommand()
수정 가능한 문서에서 서식 명령을 실행합니다.
document.getElementsByName()
주어진 이름을 갖는 요소의 목록을 반환합니다.
document.hasFocus()
포커스가 지정한 문서 내 어느 곳이든 위치한 경우 true를 반환합니다.
document.open()
작성을 위한 문서 스트림을 엽니다.
document.queryCommandEnabled()
현재 범위에서 서식 명령을 실행할 수 있다면 true를 반환합니다.
document.queryCommandIndeterm()
현재 범위에서 서식 명령의 상태를 알 수 없으면 true를 반환합니다.
document.queryCommandState()
현재 범위에서 서식 명령을 실행했다면 true를 반환합니다.
document.queryCommandSupported()
현재 범위에서 서식 명령이 지원된다면 true를 반환합니다.
document.queryCommandValue()
현재 범위에서 서식 명령을 위한 현재 값을 반환합니다.
document.write()
문서에 텍스트를 작성합니다.
document.writeln()
문서에 텍스트 한 줄을 작성합니다.

DocumentOrShadowRoot로부터 포함된 메소드

Document 인터페이스는 DocumentOrShadowRoot 믹스인mixin이 정의하는 다음의 메서드를 포함합니다. 지금은 Chrome만 구현한 상태라는 점에 유의하세요. 다른 브라우저는 Document 인터페이스에 구현 중입니다.

DocumentOrShadowRoot.getSelection()
사용자에의해 선택된 텍스트의 범위 또는 캐럿의 현재 위치를 나타내는 Selection 객체를 반환합니다.
DocumentOrShadowRoot.elementFromPoint()
지정한 위치에 있는 최상단 엘리먼트를 반환합니다.
DocumentOrShadowRoot.elementsFromPoint()
지정한 위치에 있는 모든 엘리먼트의 배열을 반환합니다.
DocumentOrShadowRoot.caretPositionFromPoint()
캐럿을 포함하는 DOM 노드와 그 노드내 캐첫의 문자 오프셋을 포함하는 CaretPosition 객체를 반환합니다.

비표준 확장

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Firefox 노트

Mozilla는 XUL 컨텐츠만을 위해 만들어진 비표준 속성의 집합을 정의합니다.

document.currentScript
현재 실행중인 <script> 엘리먼트를 반환합니다.
document.documentURIObject
(Mozilla 부가 기능 전용!) 다큐먼트의 URI 를 나타내는 nsIURI 객체를 반환합니다. 이 속성은 권한을 가진 자바스크립트 코드(UniversalXPConnect 권한을 갖는)에서만 특별한 의미를 갖습니다.
document.popupNode
팝업이 불려진 노드를 반환합니다.
document.tooltipNode
현재 툴팁의 대상이되는 노드를 반환합니다.

Mozilla 는 또한 일부 비표준 메소드를 정의합니다.

document.execCommandShowHelp 안씀 Gecko 14.0
이 메소드는 아무것도 하지 않았지만 항상 예외를 발생시켰으므로 Gecko 14.0 (Firefox 14.0 / Thunderbird 14.0 / SeaMonkey 2.11) 에서 제거되었습니다.
document.getBoxObjectFor
Element.getBoundingClientRect() 메소드를 대신 사용하세요.
document.loadOverlay
XUL 오버레이를 동적으로 로드합니다. XUL 다큐먼트에서만 동작합니다.
document.queryCommandText 안씀 Gecko 14.0
이 메소드는 아무것도 하지 않았지만 예외를 발생시켰으므로 Gecko 14.0 (Firefox 14.0 / Thunderbird 14.0 / SeaMonkey 2.11) 에서 제거되었습니다.

Internet Explorer 노트

Microsoft는 일부 비표준 속성을 정의합니다.

document.fileSize*
Returns size in bytes of the document. Starting with Internet Explorer 11, that property is no longer supported. See MSDN.

Internet Explorer는 Document 인터페이스내 Node 인터페이스의 모든 메소드를 지원하지 않습니다:

document.contains
대안으로 document.body.contains() 를 사용할 수 있습니다.

명세

명세 상태 코멘트
DOM
The definition of 'Document' in that specification.
Living Standard DOM 3 대체 의도
HTML Living Standard
The definition of 'Document' in that specification.
Living Standard HTMLDocument 인터페이스를 Document 확장으로 전환.
HTML Editing APIs
The definition of 'Document' in that specification.
Editor's Draft Document 인터페이스 확장
CSS Object Model (CSSOM) View Module
The definition of 'Document' in that specification.
Working Draft Document 인터페이스 확장
CSS Object Model (CSSOM)
The definition of 'Document' in that specification.
Working Draft Document 인터페이스 확장
Pointer Lock
The definition of 'Document' in that specification.
Candidate Recommendation Document 인터페이스 확장
Page Visibility (Second Edition)
The definition of 'Document' in that specification.
Recommendation visibilityStatehidden 속성과 onvisibilitychange 이벤트 리스너를 갖도록 Document 인터페이스 확장.
Selection API
The definition of 'Document' in that specification.
Working Draft getSelection(), onselectstartonselectionchange 추가.
DOM4
The definition of 'Document' in that specification.
Obsolete DOM 3 대체
Document Object Model (DOM) Level 3 Core Specification
The definition of 'Document' in that specification.
Obsolete DOM 2 대체
Document Object Model (DOM) Level 3 XPath Specification
The definition of 'XPathEvaluator' in that specification.
Recommendation 다큐먼트를 확장하는 XPathEvaluator 인터페이스 정의.
Document Object Model (DOM) Level 2 Core Specification
The definition of 'Document' in that specification.
Obsolete DOM 1 대체
Document Object Model (DOM) Level 1 Specification
The definition of 'Document' in that specification.
Obsolete 인터페이스 초기 정의

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
DocumentChrome Full support 1Edge Full support YesFirefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
DOMContentLoaded eventChrome Full support 1Edge Full support YesFirefox Full support 1IE Full support 9Opera Full support 9Safari Full support 3.1WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
Document() constructorChrome Full support 60Edge ? Firefox ? IE ? Opera Full support 47Safari ? WebView Android Full support 60Chrome Android Full support 60Edge Mobile ? Firefox Android ? Opera Android Full support 44Safari iOS ? Samsung Internet Android ?
URLChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
adoptNodeChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
alinkColor
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
all
Non-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Starting in Chrome 65, this property is readonly.
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Starting in Chrome 65, this property is readonly.
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Starting in Chrome 65, this property is readonly.
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
anchors
Deprecated
Chrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
animationcancel eventChrome No support NoEdge ? Firefox Full support 54IE ? Opera No support NoSafari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 54Opera Android No support NoSafari iOS ? Samsung Internet Android ?
animationend eventChrome Full support 43Edge ? Firefox Full support YesIE ? Opera Full support 30Safari ? WebView Android Full support 43Chrome Android Full support 43Edge Mobile ? Firefox Android Full support YesOpera Android Full support 30Safari iOS ? Samsung Internet Android ?
animationiteration eventChrome Full support 43Edge ? Firefox Full support 51IE ? Opera Full support 30Safari ? WebView Android Full support 43Chrome Android Full support 43Edge Mobile ? Firefox Android Full support 51Opera Android Full support 30Safari iOS ? Samsung Internet Android ?
animationstart eventChrome Full support 43Edge ? Firefox Full support 51IE ? Opera Full support 30Safari ? WebView Android Full support 43Chrome Android Full support 43Edge Mobile ? Firefox Android Full support 51Opera Android Full support 30Safari iOS ? Samsung Internet Android ?
applets
Deprecated
Chrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
bgColor
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
bodyChrome Full support 1Edge Full support 12Firefox Full support 2
Notes
Full support 2
Notes
Notes The body property was implemented on the HTMLDocument interface in Firefox for a long time, hence document.body would not return the <body> element if the document's Content-Type was not set to text/html or application/xhtml+xml (or if it came from DOMParser.parseFromString without the text/html type being used). This has been fixed in Firefox 60.
IE Full support 6Opera Full support 9.6Safari Full support 4WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support Yes
Notes
Full support Yes
Notes
Notes The body property was implemented on the HTMLDocument interface in Firefox for a long time, hence document.body would not return the <body> element if the document's Content-Type was not set to text/html or application/xhtml+xml (or if it came from DOMParser.parseFromString without the text/html type being used). This has been fixed in Firefox 60.
Opera Android Full support YesSafari iOS Full support 5Samsung Internet Android ?
captureEvents
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
caretRangeFromPoint
Non-standard
Chrome Full support 8Edge Full support 12Firefox No support NoIE No support NoOpera Full support 15Safari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support 12Firefox Android No support NoOpera Android Full support 14Safari iOS Full support YesSamsung Internet Android ?
characterSetChrome Full support 1
Full support 1
Full support 1
Notes Alternate Name
Notes charset alias was made read-only in 45.
Alternate Name Uses the non-standard name: charset
Full support 1
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Edge Full support Yes
Full support Yes
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: charset
?
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Firefox Full support Yes
Full support Yes
Full support 44
Alternate Name
Alternate Name Uses the non-standard name: charset
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
IE ?
?
?
Alternate Name
Alternate Name Uses the non-standard name: charset
?
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Opera Full support Yes
Full support Yes
?
Alternate Name
Alternate Name Uses the non-standard name: charset
?
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Safari Full support Yes
Full support Yes
Full support 9
Alternate Name
Alternate Name Uses the non-standard name: charset
?
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
WebView Android Full support 45
Full support 45
Full support Yes
Notes Alternate Name
Notes charset alias was made read-only in 45.
Alternate Name Uses the non-standard name: charset
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Chrome Android Full support 45
Full support 45
Full support Yes
Notes Alternate Name
Notes charset alias was made read-only in 45.
Alternate Name Uses the non-standard name: charset
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Edge Mobile Full support Yes
Full support Yes
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: charset
?
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Firefox Android Full support Yes
Full support Yes
Full support 44
Alternate Name
Alternate Name Uses the non-standard name: charset
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Opera Android Full support Yes
Full support Yes
?
Alternate Name
Alternate Name Uses the non-standard name: charset
?
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Safari iOS Full support Yes
Full support Yes
?
Alternate Name
Alternate Name Uses the non-standard name: charset
?
Alternate Name
Alternate Name Uses the non-standard name: inputEncoding
Samsung Internet Android ?
clear
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
closeChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
compatMode
Non-standard
Chrome Full support 43Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 43Chrome Android Full support 43Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
containsChrome Full support YesEdge ? Firefox Full support YesIE No support NoOpera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
contentType
Non-standard
Chrome Full support 43Edge Full support 17Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 43Chrome Android Full support 43Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
copy eventChrome Full support 58Edge Full support YesFirefox Full support YesIE No support NoOpera Full support 45Safari Full support YesWebView Android Full support 58Chrome Android Full support 58Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 43Safari iOS ? Samsung Internet Android ?
cookieChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createAttributeChrome Full support 1Edge Full support 12Firefox Full support 44
Full support 44
No support 4 — 44
Notes
Notes The parameter was not converted to its lowercase variant.
IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 44
Full support 44
No support 4 — 44
Notes
Notes The parameter was not converted to its lowercase variant.
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createAttributeNSChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createCDATASectionChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createCommentChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support 7WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createDocumentFragmentChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createElementChrome Full support 1Edge Full support 12Firefox Full support Yes
Notes
Full support Yes
Notes
Notes Doesn't conform to the DOM spec for XUL and XHTML documents: localName and namespaceURI are not set to null on the created element.
IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createElementNSChrome Full support 1Edge Full support 12Firefox Full support Yes
Notes
Full support Yes
Notes
Notes Doesn't conform to the DOM spec for XUL and XHTML documents: localName and namespaceURI are not set to null on the created element.
IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createEntityReference
DeprecatedNon-standard
Chrome No support NoEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
createEventChrome Full support 1Edge Full support 12Firefox Full support Yes
Notes
Full support Yes
Notes
Notes From version 67, creating touch events using this method is no longer supported.
IE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createExpressionChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
createNSResolverChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
createNodeIteratorChrome Full support 1Edge Full support 12Firefox Full support 3.5IE Full support 9Opera Full support 9Safari Full support 3WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createProcessingInstructionChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createRangeChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createTextNodeChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
createTouch
DeprecatedNon-standard
Chrome No support 22 — 66
No support 22 — 66
Full support 59
Notes
Notes All parameters optional
Edge No support NoFirefox No support 18 — 67IE No support NoOpera No support ? — 53Safari No support NoWebView Android No support ? — 66
No support ? — 66
Full support 59
Notes
Notes All parameters optional
Chrome Android No support 25 — 66
No support 25 — 66
Full support 59
Notes
Notes All parameters optional
Edge Mobile Full support YesFirefox Android Full support 6Opera Android No support ? — 47Safari iOS Full support YesSamsung Internet Android ?
createTouchList
DeprecatedNon-standard
Chrome No support 22 — 69Edge No support NoFirefox No support 18 — 67IE No support NoOpera No support ? — 56Safari No support NoWebView Android No support ? — 69Chrome Android No support 25 — 69Edge Mobile Full support YesFirefox Android Full support 6Opera Android No support ? — 48Safari iOS Full support YesSamsung Internet Android ?
createTreeWalkerChrome Full support 1Edge Full support 12Firefox Full support 2IE Full support 9Opera Full support 9Safari Full support 3WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support 10.1Safari iOS Full support 3Samsung Internet Android ?
currentScriptChrome Full support 29Edge Full support 12Firefox Full support 4IE No support NoOpera Full support 16Safari Full support 8WebView Android Full support YesChrome Android Full support 29Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support 8Samsung Internet Android ?
cut eventChrome Full support 58Edge Full support YesFirefox Full support YesIE No support NoOpera Full support 45Safari Full support YesWebView Android Full support 58Chrome Android Full support 58Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 43Safari iOS ? Samsung Internet Android ?
defaultViewChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
designModeChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android ? Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
dirChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support Yes
Notes
Full support Yes
Notes
Notes Incorrect behavior before Firefox 23.
IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile Full support YesFirefox Android Full support Yes
Notes
Full support Yes
Notes
Notes Incorrect behavior before Firefox 23.
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
doctypeChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
documentElementChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support 5Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
documentURIChrome Full support 1Edge Full support 17Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
documentURIObject
Non-standard
Chrome No support NoEdge No support NoFirefox No support ? — 57
Notes
No support ? — 57
Notes
Notes Available only to legacy extensions.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support ? — 57
Notes
No support ? — 57
Notes
Notes Available only to legacy extensions.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?
domConfig
DeprecatedNon-standard
Chrome No support NoEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
domainChrome Full support 1Edge Full support 12Firefox Full support Yes
Notes
Full support Yes
Notes
Notes From Firefox 62, if the domain cannot be identified, domain returns an empty string instead of null. See bug 819475.
IE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support Yes
Notes
Full support Yes
Notes
Notes From Firefox 62, if the domain cannot be identified, domain returns an empty string instead of null. See bug 819475.
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
drag eventChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 3.1WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS Full support 11Samsung Internet Android No support No
dragend eventChrome Full support 4
Notes
Full support 4
Notes
Notes Prior to Chrome 72, the dragend event was not dispatched if an iframe (not necessarily the source target) is involved in a DOM operation. See issue 737691 for more details.
Edge Full support 12Firefox Full support 3.5
Notes
Full support 3.5
Notes
Notes In Firefox, dragend is not dispatched if the source node is moved or removed during the drag (e.g. on drop or dragover). See bug 460801 for details.
IE Full support 10Opera Full support 12Safari Full support 3.1WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS Full support 11Samsung Internet Android No support No
dragenter eventChrome Full support 4Edge Full support 12Firefox Full support 3.5
Notes
Full support 3.5
Notes
Notes In Firefox, the dragenter event is fired twice when the dropzone is parent of draggable or draggable itself. See bug 804036 for details.
IE Full support 10Opera Full support 12Safari Full support 3.1WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS Full support 11Samsung Internet Android No support No
dragexit eventChrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
dragleave eventChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 3.1WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS Full support 11Samsung Internet Android No support No
dragover eventChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 3.1WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS Full support 11Samsung Internet Android No support No
dragstart eventChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 3.1WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS Full support 11Samsung Internet Android No support No
drop eventChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 3.1WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS Full support 11Samsung Internet Android No support No
embedsChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
enableStyleSheetsForSetChrome No support NoEdge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
evaluateChrome Full support 1Edge Full support 12Firefox Full support 1.5IE No support NoOpera Full support 9Safari Full support 5WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
execCommandChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
execCommandShowHelp
DeprecatedNon-standard
Chrome No support NoEdge Full support 12Firefox No support ? — 14
Notes
No support ? — 14
Notes
Notes This method never did anything and always threw an exception.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support ? — 14
Notes
No support ? — 14
Notes
Notes This method never did anything and always threw an exception.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?
exitFullscreenChrome Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Full support 12Firefox Full support 64
Full support 64
No support 49 — 65
Disabled
Disabled From version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 9 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozCancelFullScreen
IE Full support 11
Alternate Name
Full support 11
Alternate Name
Alternate Name Uses the non-standard name: msExitFullscreen
Opera Full support 15
Prefixed
Full support 15
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Safari Full support 5.1
Prefixed
Full support 5.1
Prefixed
Prefixed Implemented with the vendor prefix: webkit
WebView Android Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Chrome Android Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Mobile ? Firefox Android Full support 64
Full support 64
No support 49 — 65
Disabled
Disabled From version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 9 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozCancelFullScreen
Opera Android Full support YesSafari iOS No support NoSamsung Internet Android ?
exitPointerLock
Experimental
Chrome Full support 45
Full support 45
Full support 22
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Full support 13Firefox Full support 50
Full support 50
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: moz
IE ? Opera Full support YesSafari Full support YesWebView Android Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Chrome Android Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Mobile Full support YesFirefox Android Full support 50
Full support 50
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: moz
Opera Android Full support YesSafari iOS ? Samsung Internet Android ?
fgColor
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
fileSize
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support NoIE No support ? — 11Opera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
fontsChrome Full support 60Edge No support NoFirefox Full support 41
Full support 41
No support 35 — 41
Disabled
Disabled From version 35 until version 41 (exclusive): this feature is behind the layout.css.font-loading-api.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE No support NoOpera Full support 47Safari Full support 10WebView Android Full support 60Chrome Android Full support 60Edge Mobile No support NoFirefox Android Full support YesOpera Android Full support 44Safari iOS Full support 10.2Samsung Internet Android Full support 5.0
formsChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
fullscreen
Deprecated
Chrome No support No
Alternate Name
No support No
Alternate Name
Alternate Name Uses the non-standard name: webkitIsFullScreen
Edge ? Firefox Full support 64
Full support 64
No support 49 — 65
Disabled
Disabled From version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 9 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozFullScreen
IE ? Opera Full support YesSafari Full support Yes
Alternate Name
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: webkitIsFullScreen
WebView Android No support NoChrome Android No support No
Alternate Name
No support No
Alternate Name
Alternate Name Uses the non-standard name: webkitIsFullScreen
Edge Mobile ? Firefox Android Full support 64
Full support 64
No support 49 — 65
Disabled
Disabled From version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 9 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozFullScreen
Opera Android Full support YesSafari iOS ? Samsung Internet Android ?
fullscreenchange eventChrome Full support 45Edge Full support 12Firefox Full support 64
Full support 64
No support 47 — 64
Disabled
Disabled From version 47 until version 64 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 64
Alternate Name
Alternate Name Uses the non-standard name: mozfullscreenchange
IE Full support 11
Alternate Name
Full support 11
Alternate Name
Alternate Name Uses the non-standard name: MSFullscreenChange
Opera Full support 32Safari ? WebView Android Full support 45Chrome Android Full support 45Edge Mobile ? Firefox Android Full support 64
Full support 64
No support 47 — 64
Disabled
Disabled From version 47 until version 64 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 64
Alternate Name
Alternate Name Uses the non-standard name: mozfullscreenchange
Opera Android Full support 32Safari iOS ? Samsung Internet Android ?
fullscreenEnabledChrome Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Full support 12Firefox Full support 64
Full support 64
No support 47 — 65
Disabled
Disabled From version 47 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozFullScreenEnabled
IE Full support 11
Alternate Name
Full support 11
Alternate Name
Alternate Name Uses the non-standard name: msFullScreenEnabled
Opera Full support YesSafari ? WebView Android Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Chrome Android Full support 45
Full support 45
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Mobile ? Firefox Android Full support 64
Full support 64
No support 47 — 65
Disabled
Disabled From version 47 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozFullScreenEnabled
Opera Android Full support YesSafari iOS ? Samsung Internet Android ?
fullscreenerror eventChrome Full support 45Edge Full support 12Firefox Full support 64
Full support 64
No support 47 — 64
Disabled
Disabled From version 47 until version 64 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 64
Alternate Name
Alternate Name Uses the non-standard name: mozfullscreenerror
IE Full support 11
Alternate Name
Full support 11
Alternate Name
Alternate Name Uses the non-standard name: MSFullscreenError
Opera Full support 32Safari ? WebView Android Full support 45Chrome Android Full support 45Edge Mobile ? Firefox Android Full support 64
Full support 64
No support 47 — 64
Disabled
Disabled From version 47 until version 64 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: mozfullscreenerror
Opera Android Full support 32Safari iOS ? Samsung Internet Android ?
getAnimations
Experimental
Chrome No support NoEdge No support NoFirefox No support No
Notes
No support No
Notes
Notes Currently available only in Firefox Nightly and Firefox Developer Edition.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
getBoxObjectFor
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support ? — ?IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
getElementByIdChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 5.5Opera Full support 7Safari Full support 1WebView Android Full support YesChrome Android Full support 18Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 10.1Safari iOS Full support 1Samsung Internet Android ?
getElementsByClassNameChrome Full support 1Edge Full support 12Firefox Full support 4IE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
getElementsByNameChrome Full support 1Edge Full support 12
Notes
Full support 12
Notes
Notes Returns an HTMLCollection, not a NodeList
Firefox Full support YesIE Full support Yes
Notes
Full support Yes
Notes
Notes Returns an HTMLCollection, not a NodeList
Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support Yes
Notes
Full support Yes
Notes
Notes Returns an HTMLCollection, not a NodeList
Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
getElementsByTagNameChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
getElementsByTagNameNSChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
gotpointercapture eventChrome Full support 57Edge ? Firefox Full support 59IE ? Opera Full support 44Safari ? WebView Android Full support 57Chrome Android Full support 57Edge Mobile ? Firefox Android No support NoOpera Android Full support 43Safari iOS ? Samsung Internet Android ?
hasFocusChrome Full support 45Edge Full support 12Firefox Full support 3IE Full support 6Opera Full support 15Safari Full support YesWebView Android Full support 45Chrome Android Full support 45Edge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
hasStorageAccess
ExperimentalNon-standard
Chrome No support NoEdge No support NoFirefox Full support 65IE No support NoOpera No support NoSafari Full support 11.1
Notes
Full support 11.1
Notes
Notes Currently only available on macOS High Sierra 10.13.4 beta, and in Safari Technology Preview 47+.
WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android Full support 65
Disabled
Full support 65
Disabled
Disabled From version 65: this feature is behind the dom.storage_access.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android No support NoSafari iOS Full support 11.1
Notes
Full support 11.1
Notes
Notes Currently only available on iOS 11.3 beta.
Samsung Internet Android ?
headChrome Full support 4Edge Full support 12Firefox Full support 4IE Full support 9Opera Full support 11Safari Full support 5WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
height
DeprecatedNon-standard
Chrome No support NoEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
hiddenChrome Full support 33
Full support 33
Full support 13
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Full support 12Firefox Full support 18
Notes
Full support 18
Notes
Notes Since Firefox 56 it also returns true on Mac when the window is completely hidden by another non-translucent application.
No support 10 — 52
Prefixed
Prefixed Implemented with the vendor prefix: moz
IE Full support 10Opera Full support 12.1Safari Full support 7WebView Android Full support YesChrome Android Full support 33
Full support 33
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Mobile Full support YesFirefox Android Full support 18
Notes
Full support 18
Notes
Notes Since Firefox 56 it also returns true on Mac when the window is completely hidden by another non-translucent application.
No support 10 — 52
Prefixed
Prefixed Implemented with the vendor prefix: moz
Opera Android Full support 12.1Safari iOS Full support 7Samsung Internet Android ?
imagesChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
implementationChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
importNodeChrome Full support 1Edge Full support 12Firefox Full support 4IE Full support 9Opera Full support 9Safari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support 12Firefox Android Full support 4Opera Android Full support 10.1Safari iOS Full support YesSamsung Internet Android ?
keydown eventChrome Full support YesEdge Full support YesFirefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
keypress event
Deprecated
Chrome Full support Yes
Notes
Full support Yes
Notes
Notes Chrome does not fire the keypress event for known keyboard shortcuts. Which keyboard shortcuts are known depends on the user's system. Use the keydown event to implement keyboard shortcuts.
Edge Full support YesFirefox Full support Yes
Notes
Full support Yes
Notes
Notes As of Firefox 65, the keypress event is no longer fired for non-printable keys, except for the Enter key, and the Shift + Enter and Ctrl + Enter key combinations (these were kept for cross-browser compatibility purposes).
IE ? Opera ? Safari ? WebView Android Full support Yes
Notes
Full support Yes
Notes
Notes Chrome does not fire the keypress event for known keyboard shortcuts. Which keyboard shortcuts are known depends on the user's system. Use the keydown event to implement keyboard shortcuts.
Chrome Android Full support Yes
Notes
Full support Yes
Notes
Notes Chrome does not fire the keypress event for known keyboard shortcuts. Which keyboard shortcuts are known depends on the user's system. Use the keydown event to implement keyboard shortcuts.
Edge Mobile Full support YesFirefox Android Full support Yes
Notes
Full support Yes
Notes
Notes As of Firefox 65, the keypress event is no longer fired for non-printable keys, except for the Enter key, and the Shift + Enter and Ctrl + Enter key combinations (these were kept for cross-browser compatibility purposes).
Opera Android ? Safari iOS ? Samsung Internet Android ?
keyup eventChrome Full support YesEdge Full support YesFirefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
lastModifiedChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
lastStyleSheetSetChrome No support NoEdge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
linkColor
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
linksChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
loadOverlay
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support ? — 61
Notes
No support ? — 61
Notes
Notes Available only to XUL documents.
Notes See bug 1449791
No support ? — 61
Notes
Notes Available only to XUL documents.
Notes See bug 1449791
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
locationChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
lostpointercapture eventChrome Full support 57Edge ? Firefox Full support 59IE ? Opera Full support 44Safari ? WebView Android Full support 57Chrome Android Full support 57Edge Mobile ? Firefox Android No support NoOpera Android Full support 43Safari iOS ? Samsung Internet Android ?
mozSetImageElement
Non-standard
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
mozSyntheticDocument
Non-standard
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
normalizeDocument
DeprecatedNon-standard
Chrome No support NoEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
onafterscriptexecute
Non-standard
Chrome No support NoEdge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
onbeforescriptexecute
Non-standard
Chrome No support NoEdge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
oncopy
Non-standard
Chrome Full support YesEdge Full support 17Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
oncut
Non-standard
Chrome Full support YesEdge Full support 17Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
onfreeze
Experimental
Chrome Full support 68Edge No support NoFirefox No support NoIE No support NoOpera Full support 55Safari No support NoWebView Android Full support 68Chrome Android Full support 68Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 48Safari iOS No support NoSamsung Internet Android ?
onfullscreenchangeChrome Full support 45Edge Full support 12Firefox Full support 64
Full support 64
No support 47 — 65
Disabled
Disabled From version 47 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: onmozfullscreenchange
IE Full support 11
Alternate Name
Full support 11
Alternate Name
Alternate Name Uses the non-standard name: onMSFullscreenChange
Opera Full support YesSafari ? WebView Android Full support 45Chrome Android Full support 45Edge Mobile ? Firefox Android Full support 64
Full support 64
No support 47 — 65
Disabled
Disabled From version 47 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: onmozfullscreenchange
Opera Android Full support YesSafari iOS ? Samsung Internet Android ?
onfullscreenerrorChrome Full support 45Edge Full support 12Firefox Full support 64
Full support 64
No support 47 — 65
Disabled
Disabled From version 47 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: onmozfullscreenerror
IE Full support 11
Alternate Name
Full support 11
Alternate Name
Alternate Name Uses the non-standard name: onMSFullscreenError
Opera Full support YesSafari ? WebView Android Full support 45Chrome Android Full support 45Edge Mobile ? Firefox Android Full support 64
Full support 64
No support 47 — 65
Disabled
Disabled From version 47 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support 10 — 65
Alternate Name
Alternate Name Uses the non-standard name: onmozfullscreenerror
Opera Android Full support YesSafari iOS ? Samsung Internet Android ?
onpaste
Non-standard
Chrome Full support YesEdge Full support 17Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
onpointerlockchange
Experimental
Chrome Full support YesEdge Full support 13Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS ? Samsung Internet Android ?
onpointerlockerror
Experimental
Chrome Full support YesEdge Full support 13Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS ? Samsung Internet Android ?
onreadystatechangeChrome Full support YesEdge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
onresume
Experimental
Chrome Full support 68Edge No support NoFirefox No support NoIE No support NoOpera Full support 55Safari No support NoWebView Android Full support 68Chrome Android Full support 68Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 48Safari iOS No support NoSamsung Internet Android ?
onselectionchange
Experimental
Chrome Full support 12Edge ? Firefox Full support 52
Full support 52
Full support 43
Disabled
Disabled From version 43: this feature is behind the dom.select_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support YesOpera Full support 15Safari Full support 1.3WebView Android Full support YesChrome Android Full support 18Edge Mobile ? Firefox Android Full support 52
Full support 52
Full support 43
Disabled
Disabled From version 43: this feature is behind the dom.select_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Full support 14Safari iOS Full support YesSamsung Internet Android Full support Yes
onvisibilitychangeChrome Full support 33
Full support 33
Full support 13
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Full support 18Firefox Full support 56IE Full support 10Opera Full support 12.1
Notes
Full support 12.1
Notes
Notes Doesn't fire the visibilitychange event when the browser window is minimized, nor when hidden is set to true.
Safari Full support 7WebView Android Full support 4.4.3Chrome Android Full support 33Edge Mobile Full support YesFirefox Android Full support 56Opera Android Full support 12.1
Notes
Full support 12.1
Notes
Notes Doesn't fire the visibilitychange event when the browser window is minimized, nor when hidden is set to true.
Safari iOS Full support 7Samsung Internet Android ?
openChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
originChrome No support 41 — 71Edge ? Firefox No support NoIE Full support YesOpera Full support YesSafari Full support YesWebView Android No support 41 — 71Chrome Android No support 41 — 71Edge Mobile ? Firefox Android No support NoOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
paste eventChrome Full support 58Edge Full support YesFirefox Full support YesIE Full support 11Opera Full support 45Safari Full support YesWebView Android Full support 58Chrome Android Full support 58Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 43Safari iOS ? Samsung Internet Android ?
pluginsChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
pointercancel eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointercancel
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
pointerdown eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointerdown
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
pointerenter eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointerenter
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
pointerleave eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointerleave
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
pointerlockchange event
Experimental
Chrome Full support 45
Full support 45
No support 22 — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android Full support 45
Full support 45
No support ? — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Chrome Android Full support 45
Full support 45
No support 25 — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
pointerlockerror event
Experimental
Chrome Full support 45
Full support 45
No support 22 — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android Full support 45
Full support 45
No support ? — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Chrome Android Full support 45
Full support 45
No support 25 — 45
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
pointermove eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointermove
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
pointerout eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointerout
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
pointerover eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointerover
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
pointerup eventChrome Full support 55Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: mspointerup
Opera ? Safari No support NoWebView Android Full support 55Chrome Android Full support 55Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?
policy
Experimental
Chrome Full support 69
Disabled
Full support 69
Disabled
Disabled From version 69: this feature is behind the #enable-experimental-productivity-features preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.
Edge No support NoFirefox Full support 65
Disabled
Full support 65
Disabled
Disabled From version 65: this feature is behind the dom.security.featurePolicy.webidl.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE No support NoOpera Full support 56
Disabled
Full support 56
Disabled
Disabled From version 56: this feature is behind the #enable-experimental-productivity-features preference (needs to be set to Enabled).
Safari No support NoWebView Android Full support 69
Disabled
Full support 69
Disabled
Disabled From version 69: this feature is behind the #enable-experimental-productivity-features preference (needs to be set to Enabled).
Chrome Android Full support 69
Disabled
Full support 69
Disabled
Disabled From version 69: this feature is behind the #enable-experimental-productivity-features preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.
Edge Mobile No support NoFirefox Android Full support 65
Disabled
Full support 65
Disabled
Disabled From version 65: this feature is behind the dom.security.featurePolicy.webidl.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Full support 48
Disabled
Full support 48
Disabled
Disabled From version 48: this feature is behind the #enable-experimental-productivity-features preference (needs to be set to Enabled).
Safari iOS No support NoSamsung Internet Android ?
popupNode
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox Full support Yes
Notes
Full support Yes
Notes
Notes Available only to XUL documents.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
preferredStyleSheetSetChrome Full support 1Edge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
queryCommandEnabledChrome Full support 1Edge Full support 12Firefox Full support 41
Full support 41
No support 9 — 41
Notes
Notes queryCommandEnabled with arguments cut, copy or paste would throw errors unless the script had special privileges.
IE Full support 4Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 41
Full support 41
No support 9 — 41
Notes
Notes queryCommandEnabled with arguments cut, copy or paste would throw errors unless the script had special privileges.
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
queryCommandIndetermChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
queryCommandStateChrome Full support 1Edge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
queryCommandSupportedChrome Full support 1Edge Full support 12Firefox Full support 41
Full support 41
No support 9 — 41
Notes
Notes paste argument incorrectly returned true when the paste feature was available but the calling script had insufficient privileges to actually perform the action.
IE Full support 4Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 41
Full support 41
No support 9 — 41
Notes
Notes paste argument incorrectly returned true when the paste feature was available but the calling script had insufficient privileges to actually perform the action.
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
queryCommandText
DeprecatedNon-standard
Chrome No support NoEdge Full support 12Firefox No support ? — 14
Notes
No support ? — 14
Notes
Notes This method never did anything and always threw an exception.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support ? — 14
Notes
No support ? — 14
Notes
Notes This method never did anything and always threw an exception.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?
queryCommandValueChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
querySelectorChrome Full support 1Edge Full support 12Firefox Full support 3.5IE Full support 8Opera Full support 10Safari Full support 3.2WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 10.1Safari iOS Full support 3.2Samsung Internet Android ?
querySelectorAllChrome Full support 1Edge Full support 12Firefox Full support 3.5IE Full support 8Opera Full support 10Safari Full support 3.2WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 10.1Safari iOS Full support YesSamsung Internet Android ?
readyStateChrome Full support 1Edge Full support 12Firefox Full support 4IE Full support 9
Notes
Full support 9
Notes
Notes Internet Explorer 9 and 10 have bugs where the 'interactive' state can be fired too early before the document has finished parsing.
Full support 8
Notes
Notes Only supports 'complete'.
Opera Full support 11
Notes
Full support 11
Notes
Notes Opera Presto fires 'complete' late after the 'load' event (in an incorrect order as per HTML5 standard specification).
Safari Full support 5WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support 11
Notes
Full support 11
Notes
Notes Opera Presto fires 'complete' late after the 'load' event (in an incorrect order as per HTML5 standard specification).
Safari iOS Full support 5Samsung Internet Android ?
readystatechange eventChrome Full support YesEdge Full support YesFirefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
referrerChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
registerElement
DeprecatedNon-standard
Chrome Full support 35Edge No support NoFirefox No support 31 — 59
Disabled
No support 31 — 59
Disabled
Disabled From version 31 until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true) and the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE No support NoOpera Full support 25Safari No support NoWebView Android Full support 37Chrome Android Full support 35Edge Mobile No support NoFirefox Android No support 31 — 59
Disabled
No support 31 — 59
Disabled
Disabled From version 31 until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true) and the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Full support 25Safari iOS No support NoSamsung Internet Android ?
releaseCapture
Non-standard
Chrome No support NoEdge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
releaseEvents
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
requestStorageAccess
ExperimentalNon-standard
Chrome No support NoEdge No support NoFirefox Full support 65IE No support NoOpera No support NoSafari Full support 11.1
Notes
Full support 11.1
Notes
Notes Currently only available on macOS High Sierra 10.13.4 beta, and in Safari Technology Preview 47+.
WebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android Full support 65
Disabled
Full support 65
Disabled
Disabled From version 65: this feature is behind the dom.storage_access.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android No support NoSafari iOS Full support 11.1
Notes
Full support 11.1
Notes
Notes Currently only available on iOS 11.3 beta.
Samsung Internet Android ?
routeEvent
DeprecatedNon-standard
Chrome No support NoEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
scriptsChrome Full support YesEdge Full support 12Firefox Full support 9IE Full support 4Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 9Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
scroll eventChrome Full support YesEdge Full support YesFirefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
scrollingElementChrome Full support 44Edge Full support 12Firefox Full support 48
Full support 48
No support 47 — 48
Disabled
Disabled From version 47 until version 48 (exclusive): this feature is behind the dom.document.scrollingElement.enabled preference. To change preferences in Firefox, visit about:config.
IE No support NoOpera Full support 31Safari Full support 9WebView Android Full support 44Chrome Android Full support 44Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 32Safari iOS Full support 9Samsung Internet Android ?
selectedStyleSheetSetChrome Full support 1Edge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
selectstart event
Experimental
Chrome Full support YesEdge ? Firefox Full support 52
Full support 52
Full support 43
Disabled
Disabled From version 43: this feature is behind the dom.select_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support YesOpera ? Safari Full support 1.3WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support 52
Full support 52
Full support 43
Disabled
Disabled From version 43: this feature is behind the dom.select_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS Full support YesSamsung Internet Android ?
selectstart event
Experimental
Chrome Full support YesEdge ? Firefox Full support 52
Full support 52
Full support 43
Disabled
Disabled From version 43: this feature is behind the dom.select_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support YesOpera ? Safari Full support 1.3WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support 52
Full support 52
Full support 43
Disabled
Disabled From version 43: this feature is behind the dom.select_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS Full support YesSamsung Internet Android ?
styleSheetSetsChrome No support NoEdge ? Firefox Full support YesIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support YesOpera Android ? Safari iOS ? Samsung Internet Android ?
timeline
Experimental
Chrome No support NoEdge No support NoFirefox No support No
Notes
No support No
Notes
Notes Currently only supported in Firefox Nightly (version 48).
IE Full support YesOpera Full support YesSafari Full support YesWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support No
Notes
No support No
Notes
Notes Currently only supported in Firefox Nightly (version 48).
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
titleChrome Full support 1Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
tooltipNode
Non-standard
Chrome No support NoEdge No support NoFirefox Full support Yes
Notes
Full support Yes
Notes
Notes Available only to XUL documents.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?
touchcancel eventChrome Full support 22Edge Full support 12Firefox Full support 52IE No support NoOpera No support NoSafari No support NoWebView Android Full support YesChrome Android Full support 25Edge Mobile Full support 12Firefox Android Full support 6Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
touchend eventChrome Full support 22Edge Full support 12Firefox Full support 52IE No support NoOpera No support NoSafari No support NoWebView Android Full support YesChrome Android Full support 25Edge Mobile Full support 12Firefox Android Full support 6Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
touchmove eventChrome Full support 22Edge Full support 12Firefox Full support 52IE No support NoOpera No support NoSafari No support NoWebView Android Full support YesChrome Android Full support 25Edge Mobile Full support 12Firefox Android Full support 6Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
touchstart eventChrome Full support 22Edge Full support 12Firefox Full support 52IE No support NoOpera No support NoSafari No support NoWebView Android Full support YesChrome Android Full support 25Edge Mobile Full support 12Firefox Android Full support 6Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
transitioncancel eventChrome No support NoEdge ? Firefox Full support 53IE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 53Opera Android ? Safari iOS ? Samsung Internet Android ?
transitionend eventChrome No support NoEdge ? Firefox Full support 51IE ? Opera ? Safari Full support YesWebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 51Opera Android ? Safari iOS Full support YesSamsung Internet Android ?
transitionrun eventChrome No support NoEdge ? Firefox Full support 53IE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 53Opera Android ? Safari iOS ? Samsung Internet Android ?
transitionstart eventChrome No support NoEdge ? Firefox Full support 53IE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 53Opera Android ? Safari iOS ? Samsung Internet Android ?
undoManager
Experimental
Chrome No support NoEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
visibilityStateChrome Full support 33
Full support 33
Full support 13
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Full support 12Firefox Full support 18
Full support 18
No support 10 — 52
Prefixed
Prefixed Implemented with the vendor prefix: moz
IE Full support 10Opera Full support 12.1
Notes
Full support 12.1
Notes
Notes Doesn't fire the visibilitychange event when the browser window is minimized, nor when hidden is set to true.
Safari Full support 7WebView Android Full support 4.4.3Chrome Android Full support 33
Full support 33
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Mobile ? Firefox Android Full support 18
Full support 18
No support 10 — 52
Prefixed
Prefixed Implemented with the vendor prefix: moz
Opera Android Full support 12.1
Notes
Full support 12.1
Notes
Notes Doesn't fire the visibilitychange event when the browser window is minimized, nor when hidden is set to true.
Safari iOS Full support 7Samsung Internet Android ?
vlinkColor
DeprecatedNon-standard
Chrome Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Chrome Android Full support 64
Notes
Full support 64
Notes
Notes Before Chrome 64, this property was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
wasDiscarded
Experimental
Chrome Full support 68Edge No support NoFirefox No support NoIE No support NoOpera Full support 55Safari No support NoWebView Android Full support 68Chrome Android Full support 68Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 48Safari iOS No support NoSamsung Internet Android ?
wheel eventChrome Full support 61Edge Full support YesFirefox Full support YesIE Full support YesOpera Full support 48Safari Full support YesWebView Android Full support 61Chrome Android Full support 61Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 45Safari iOS Full support YesSamsung Internet Android ?
width
DeprecatedNon-standard
Chrome No support NoEdge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
writeChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
writelnChrome Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Chrome Android Full support 45
Notes
Full support 45
Notes
Notes Before Chrome 64, this method was accessed through the HTMLDocument alias.
Edge Mobile ? Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
xmlEncoding
DeprecatedNon-standard
Chrome Full support 1Edge Full support 12Firefox No support NoIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
xmlStandalone
DeprecatedNon-standard
Chrome Full support 1Edge Full support 12Firefox No support NoIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?
xmlVersion
DeprecatedNon-standard
Chrome Full support 1Edge Full support 12Firefox No support NoIE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
See implementation notes.
See implementation notes.
User must explicitly enable this feature.
User must explicitly enable this feature.
Uses a non-standard name.
Uses a non-standard name.
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

문서 태그 및 공헌자

이 페이지의 공헌자: mdnwebdocs-bot, alattalatta, cs09g, PineMt, teoli, fscholz, khalid32, pusanbear
최종 변경자: mdnwebdocs-bot,