Document interface

인터페이스는 Document 브라우저에 로드된 모든 웹 페이지를 나타내며 DOM 트리인 웹 페이지의 콘텐츠에 대한 진입점 역할을 합니다.

MDN 참조

Extends

Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase

속성

alinkColor

문서 본문에서 활성 링크의 색을 반환하거나 설정합니다.

all

문서 인터페이스의 읽기 전용 all 속성은 문서 노드에 루팅된 HTMLAllCollection을 반환합니다.

anchors

anchors HTMLCollection의 읽기 전용 속성입니다.

applets

Document의 속성은 applets 빈 HTMLCollection을 반환합니다.

bgColor

사용되지 않는 속성은 bgColor 현재 문서의 배경색을 가져오거나 설정합니다.

body

속성은 Document.bodynull 이러한 요소가 없는 경우를 나타냅니다.

MDN 참조

characterSet

읽기 전용 속성은 Document.characterSet 현재 렌더링된 문서의 문자 인코딩을 반환합니다.

MDN 참조

charset
compatMode

읽기 전용 속성은 Document.compatMode 문서가 Quirks 모드 또는 표준 모드로 렌더링되는지 여부를 나타냅니다.

MDN 참조

contentType

읽기 전용 속성은 Document.contentType 문서가 렌더링되는 MIME 형식을 반환합니다.

MDN 참조

cookie

Document 속성을 cookie 사용하면 문서와 연결된 쿠키를 읽고 쓸 수 있습니다.

MDN 참조

currentScript

이 속성은 Document.currentScript 스크립트가 현재 처리되고 있으며 JavaScript 모듈이 아닌 스크립트 요소를 반환합니다.

MDN 참조

defaultView

브라우저에서 이 속성이 읽기 전용임을 반환합니다 document.defaultView .

MDN 참조

designMode

document.designMode 는 전체 문서를 편집할 수 있는지 여부를 제어합니다.

MDN 참조

dir

이 Document.dir 속성은 왼쪽에서 오른쪽(기본값) 또는 오른쪽에서 왼쪽으로 문서 텍스트의 방향을 나타내는 문자열입니다.

MDN 참조

doctype

doctype Document 인터페이스의 읽기 전용 속성은 현재 문서와 연결된 Doctype을 나타내는 DocumentType 개체입니다.

MDN 참조

documentElement

문서 인터페이스의 읽기 전용 속성은 documentElement HTML 문서의 html 요소인 예제를 반환합니다.)

MDN 참조

documentURI

documentURI A 문자열의 읽기 전용 속성입니다.

MDN 참조

domain

문서 인터페이스의 속성은 domain 동일한 원본 정책에서 사용하는 현재 문서의 원본 도메인 부분을 가져오거나 설정합니다.

embeds

embeds HTMLCollection의 읽기 전용 속성입니다.

MDN 참조

fgColor

fgColor 현재 문서의 전경색 또는 텍스트 색을 가져오거나 설정합니다.

forms

문서 인터페이스의 읽기 전용 속성은 forms 문서에 포함된 모든 양식 요소를 나열하는 HTMLCollection을 반환합니다.

MDN 참조

fragmentDirective

문서 인터페이스의 읽기 전용 속성은 fragmentDirective 현재 문서에 대한 FragmentDirective를 반환합니다.

MDN 참조

fullscreen

사용되지 않는 문서 인터페이스의 fullscreen 읽기 전용 속성은 문서가 현재 전체 화면 모드로 콘텐츠를 표시하고 있는지 여부를 보고합니다.

fullscreenEnabled

문서 인터페이스의 읽기 전용 fullscreenEnabled 속성은 전체 화면 모드를 사용할 수 있는지 여부를 나타냅니다.

MDN 참조

head

문서 인터페이스의 읽기 전용 속성은 head 현재 문서의 헤드 요소를 반환합니다.

MDN 참조

hidden

읽기 전용 속성은 Document.hidden 페이지가 숨겨진 것으로 간주되는지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

images

Document 인터페이스의 읽기 전용 속성은 images 현재 HTML 문서에 있는 이미지 컬렉션을 반환합니다.

MDN 참조

implementation

이 속성은 Document.implementation A DOMImplementation 개체를 반환합니다.

MDN 참조

inputEncoding
lastModified

Document 인터페이스의 속성은 lastModified 현재 문서가 마지막으로 수정된 날짜 및 현지 시간을 포함하는 문자열을 반환합니다.

MDN 참조

linkColor

이 속성은 Document.linkColor 문서 내의 링크 색을 가져오거나 설정합니다.

links

Document 인터페이스의 읽기 전용 속성은 links 모든 영역 요소의 컬렉션과 href 특성 값이 있는 문서의 요소를 반환합니다.

MDN 참조

location

읽기 전용 속성은 Document.location 해당 URL을 변경하고 다른 URL을 로드하기 위한 메서드를 반환하고 제공합니다.

MDN 참조

mozCancelFullScreen
msExitFullscreen
onfullscreenchange

MDN 참조

onfullscreenerror

MDN 참조

onpointerlockchange

MDN 참조

onpointerlockerror

MDN 참조

onreadystatechange

MDN 참조

onvisibilitychange

MDN 참조

ownerDocument

노드 인터페이스의 읽기 전용 ownerDocument 속성은 노드의 최상위 문서 개체를 반환합니다.

MDN 참조

pictureInPictureEnabled

사용 가능한 읽기 전용 pictureInPictureEnabled 속성입니다.

MDN 참조

plugins

plugins HTMLCollection을 나타내는 하나 이상의 HTMLEmbedElements가 포함된 읽기 전용 속성입니다.

MDN 참조

readyState

이 속성은 Document.readyState 문서의 로드 상태를 설명합니다.

MDN 참조

referrer

이 속성은 Document.referrer 이 페이지에 연결된 페이지의 URI를 반환합니다.

MDN 참조

rootElement

Document.rootElement 는 문서인 경우 문서의 루트 요소인 요소를 반환합니다.

scripts

문서 인터페이스의 속성은 scripts 문서의 스크립트 요소 목록을 반환합니다.

MDN 참조

scrollingElement

scrollingElement 문서를 스크롤하는 읽기 전용 속성입니다.

MDN 참조

textContent

MDN 참조

timeline

문서 인터페이스의 readonly 속성은 timeline 현재 문서의 기본 타임라인을 나타냅니다.

MDN 참조

title

이 속성은 document.title 문서의 현재 제목을 가져오거나 설정합니다.

MDN 참조

URL

문서 인터페이스의 읽기 전용 속성은 URL 문서 위치를 문자열로 반환합니다.

MDN 참조

visibilityState

읽기 전용 속성은 Document.visibilityState 문서의 표시 유형을 반환합니다.

MDN 참조

vlinkColor

이 속성은 Document.vlinkColor 사용자가 문서에서 방문한 링크의 색을 가져오거나 설정합니다.

webkitExitFullscreen

상속된 속성

activeElement

키 이벤트를 라우팅할 문서 내의 가장 깊은 요소를 반환합니다. 이것은 대체로 문서의 포커스가 있는 요소입니다.

이 API의 목적을 위해 자식 검색 컨텍스트에 초점을 맞춘 경우 해당 컨테이너는 부모 검색 컨텍스트에 초점을 맞춥니다. 예를 들어 사용자가 iframe의 텍스트 컨트롤로 포커스를 이동하는 경우 iframe은 iframe의 노드 문서에서 activeElement API에서 반환하는 요소입니다.

마찬가지로, 포커스가 있는 요소가 documentOrShadowRoot와 다른 노드 트리에 있는 경우 documentOrShadowRoot가 포커스된 요소의 섀도 포함 포괄 상위 항목인 경우 documentOrShadowRoot와 동일한 노드 트리에 있는 호스트가 반환되고, 그렇지 않으면 null이 됩니다.

MDN 참조

adoptedStyleSheets

MDN 참조

ATTRIBUTE_NODE
baseURI

노드 인터페이스의 읽기 전용 baseURI 속성은 노드를 포함하는 문서의 절대 기본 URL을 반환합니다.

MDN 참조

CDATA_SECTION_NODE

노드는 CDATASection 노드입니다.

childElementCount

MDN 참조

childNodes

노드 인터페이스의 읽기 전용 childNodes 속성은 첫 번째 자식 노드에 인덱 0스가 할당된 라이브를 반환합니다.

MDN 참조

children

자식 요소를 반환합니다.

MDN 참조

COMMENT_NODE

노드는 주석 노드입니다.

DOCUMENT_FRAGMENT_NODE

노드는 DocumentFragment 노드입니다.

DOCUMENT_NODE

노드는 문서입니다.

DOCUMENT_POSITION_CONTAINED_BY

다른 노드가 노드의 하위 항목인 경우를 설정합니다.

DOCUMENT_POSITION_CONTAINS

다른 노드가 노드의 상위 항목인 경우를 설정합니다.

DOCUMENT_POSITION_DISCONNECTED

노드와 다른 노드가 동일한 트리에 없을 때 설정합니다.

DOCUMENT_POSITION_FOLLOWING

다른 노드가 다음 노드일 때 설정합니다.

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING

다른 노드가 이전 노드일 때 설정합니다.

DOCUMENT_TYPE_NODE

node는 doctype입니다.

ELEMENT_NODE

node는 요소입니다.

ENTITY_NODE
ENTITY_REFERENCE_NODE
firstChild

노드 인터페이스의 읽기 전용 firstChild 속성은 트리에서 노드의 첫 번째 자식을 반환하거나 null 노드에 자식이 없는 경우 반환합니다.

MDN 참조

firstElementChild

요소인 첫 번째 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다.

MDN 참조

fonts

MDN 참조

fullscreenElement

문서의 전체 화면 요소를 반환합니다.

MDN 참조

isConnected

노드 인터페이스의 읽기 전용 isConnected 속성은 노드가 Document 개체에 직접 또는 간접적으로 연결되어 있는지 여부를 나타내는 부울을 반환합니다.

MDN 참조

lastChild

노드 인터페이스의 읽기 전용 lastChild 속성은 노드의 마지막 자식 또는 null 자식 노드가 없는 경우 반환합니다.

MDN 참조

lastElementChild

요소인 마지막 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다.

MDN 참조

nextSibling

노드 인터페이스의 읽기 전용 nextSibling 속성은 부모 Node.childNodes에서 지정된 노드 바로 뒤에 노드를 반환하거나 지정된 노드가 부모 요소의 마지막 자식인 경우 반환 null 합니다.

MDN 참조

nodeName

노드의 읽기 전용 nodeName 속성은 현재 노드의 이름을 문자열로 반환합니다.

MDN 참조

nodeType

노드 인터페이스의 읽기 전용 nodeType 속성은 노드가 무엇인지 식별하는 정수입니다.

MDN 참조

nodeValue

노드 인터페이스의 속성은 nodeValue 현재 노드의 값을 반환하거나 설정합니다.

MDN 참조

NOTATION_NODE
onabort

MDN 참조

onanimationcancel

MDN 참조

onanimationend

MDN 참조

onanimationiteration

MDN 참조

onanimationstart

MDN 참조

onauxclick

MDN 참조

onbeforeinput

MDN 참조

onbeforematch

MDN 참조

onbeforetoggle

MDN 참조

onblur

MDN 참조

oncancel

MDN 참조

oncanplay

MDN 참조

oncanplaythrough

MDN 참조

onchange

MDN 참조

onclick

MDN 참조

onclose

MDN 참조

oncontextlost

MDN 참조

oncontextmenu

MDN 참조

oncontextrestored

MDN 참조

oncopy

MDN 참조

oncuechange

MDN 참조

oncut

MDN 참조

ondblclick

MDN 참조

ondrag

MDN 참조

ondragend

MDN 참조

ondragenter

MDN 참조

ondragleave

MDN 참조

ondragover

MDN 참조

ondragstart

MDN 참조

ondrop

MDN 참조

ondurationchange

MDN 참조

onemptied

MDN 참조

onended

MDN 참조

onerror

MDN 참조

onfocus

MDN 참조

onformdata

MDN 참조

ongotpointercapture

MDN 참조

oninput

MDN 참조

oninvalid

MDN 참조

onkeydown

MDN 참조

onkeypress
onkeyup

MDN 참조

onload

MDN 참조

onloadeddata

MDN 참조

onloadedmetadata

MDN 참조

onloadstart

MDN 참조

onlostpointercapture

MDN 참조

onmousedown

MDN 참조

onmouseenter

MDN 참조

onmouseleave

MDN 참조

onmousemove

MDN 참조

onmouseout

MDN 참조

onmouseover

MDN 참조

onmouseup

MDN 참조

onpaste

MDN 참조

onpause

MDN 참조

onplay

MDN 참조

onplaying

MDN 참조

onpointercancel

MDN 참조

onpointerdown

MDN 참조

onpointerenter

MDN 참조

onpointerleave

MDN 참조

onpointermove

MDN 참조

onpointerout

MDN 참조

onpointerover

MDN 참조

onpointerrawupdate

보안 컨텍스트에서만 사용할 수 있습니다.

MDN 참조

onpointerup

MDN 참조

onprogress

MDN 참조

onratechange

MDN 참조

onreset

MDN 참조

onresize

MDN 참조

onscroll

MDN 참조

onscrollend

MDN 참조

onsecuritypolicyviolation

MDN 참조

onseeked

MDN 참조

onseeking

MDN 참조

onselect

MDN 참조

onselectionchange

MDN 참조

onselectstart

MDN 참조

onslotchange

MDN 참조

onstalled

MDN 참조

onsubmit

MDN 참조

onsuspend

MDN 참조

ontimeupdate

MDN 참조

ontoggle

MDN 참조

ontouchcancel

MDN 참조

ontouchend

MDN 참조

ontouchmove

MDN 참조

ontouchstart

MDN 참조

ontransitioncancel

MDN 참조

ontransitionend

MDN 참조

ontransitionrun

MDN 참조

ontransitionstart

MDN 참조

onvolumechange

MDN 참조

onwaiting

MDN 참조

onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel

MDN 참조

parentElement

노드 인터페이스의 읽기 전용 parentElement 속성은 DOM 노드의 부모 요소를 반환하거나 null 노드에 부모가 없거나 해당 부모가 DOM 요소가 아닌 경우 반환됩니다.

MDN 참조

parentNode

노드 인터페이스의 읽기 전용 parentNode 속성은 DOM 트리에서 지정된 노드의 부모를 반환합니다.

MDN 참조

pictureInPictureElement

MDN 참조

pointerLockElement

MDN 참조

previousSibling

노드 인터페이스의 읽기 전용 previousSibling 속성은 부모 노드에서 지정한 노드 바로 앞에 있는 노드를 반환하거나 null 지정된 노드가 해당 목록의 첫 번째 노드인 경우 반환합니다.

MDN 참조

PROCESSING_INSTRUCTION_NODE

node는 ProcessingInstruction 노드입니다.

styleSheets

MDN 참조

TEXT_NODE

노드는 텍스트 노드입니다.

메서드

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)

EventTarget 인터페이스의 메서드는 addEventListener() 지정된 이벤트가 대상에 배달될 때마다 호출되는 함수를 설정합니다.

MDN 참조

adoptNode<T>(T)

Document.adoptNode() 는 다른 문서에서 메서드의 문서로 노드/dom을 전송합니다.

MDN 참조

captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)

Document 인터페이스의 메서드는 caretPositionFromPoint() 해당 노드 내에서 caret 및 caret의 문자 오프셋과 함께 DOM 노드를 포함하는 CaretPosition 개체를 반환합니다.

MDN 참조

caretRangeFromPoint(number, number)
clear()

메서드는 Document.clear() 아무 작업도 수행하지 않지만 오류가 발생하지 않습니다.

close()

이 메서드는 Document.close() Document.open()을 사용하여 열린 문서에 대한 쓰기를 완료합니다.

MDN 참조

createAttribute(string)

메서드는 Document.createAttribute() 새 특성 노드를 만들고 반환합니다.

MDN 참조

createAttributeNS(string | null, string)

메서드는 Document.createAttributeNS() 지정된 네임스페이스 URI 및 정규화된 이름을 사용하여 새 특성 노드를 만들고 반환합니다.

MDN 참조

createCDATASection(string)

createCDATASection() 는 새 CDATA 섹션 노드를 만들고 반환합니다.

MDN 참조

createComment(string)

createComment() 는 새 주석 노드를 만들고 반환합니다.

MDN 참조

createDocumentFragment()

DOM 노드를 추가하여 오프스크린 DOM 트리를 빌드할 수 있는 빈 DocumentFragment를 새로 만듭니다.

MDN 참조

createElement(string, ElementCreationOptions)
createElement<K>(K, ElementCreationOptions)

HTML 문서에서 메서드는 document.createElement() 지정된 localNameHTML 요소를 만들거나 인식할 수 없는 경우 localName HTMLUnknownElement를 만듭니다.

MDN 참조

createElement<K>(K, ElementCreationOptions)
createElementNS("http://www.w3.org/1998/Math/MathML", string)
createElementNS("http://www.w3.org/1999/xhtml", string)

지정된 네임스페이스 URI 및 정규화된 이름을 사용하여 요소를 만듭니다.

MDN 참조

createElementNS("http://www.w3.org/2000/svg", string)
createElementNS(string | null, string, ElementCreationOptions)
createElementNS(string | null, string, string | ElementCreationOptions)
createElementNS<K>("http://www.w3.org/1998/Math/MathML", K)
createElementNS<K>("http://www.w3.org/2000/svg", K)
createEvent("AnimationEvent")

지정된 형식의 이벤트를 만듭니다.

createEvent("AnimationPlaybackEvent")
createEvent("AudioProcessingEvent")
createEvent("BeforeUnloadEvent")
createEvent("BlobEvent")
createEvent("ClipboardEvent")
createEvent("CloseEvent")
createEvent("CompositionEvent")
createEvent("ContentVisibilityAutoStateChangeEvent")
createEvent("CookieChangeEvent")
createEvent("CustomEvent")
createEvent("DeviceMotionEvent")
createEvent("DeviceOrientationEvent")
createEvent("DragEvent")
createEvent("ErrorEvent")
createEvent("Event")
createEvent("Events")
createEvent("FocusEvent")
createEvent("FontFaceSetLoadEvent")
createEvent("FormDataEvent")
createEvent("GamepadEvent")
createEvent("HashChangeEvent")
createEvent("IDBVersionChangeEvent")
createEvent("InputEvent")
createEvent("KeyboardEvent")
createEvent("MediaEncryptedEvent")
createEvent("MediaKeyMessageEvent")
createEvent("MediaQueryListEvent")
createEvent("MediaStreamTrackEvent")
createEvent("MessageEvent")
createEvent("MIDIConnectionEvent")
createEvent("MIDIMessageEvent")
createEvent("MouseEvent")
createEvent("MouseEvents")
createEvent("OfflineAudioCompletionEvent")
createEvent("PageRevealEvent")
createEvent("PageSwapEvent")
createEvent("PageTransitionEvent")
createEvent("PaymentMethodChangeEvent")
createEvent("PaymentRequestUpdateEvent")
createEvent("PictureInPictureEvent")
createEvent("PointerEvent")
createEvent("PopStateEvent")
createEvent("ProgressEvent")
createEvent("PromiseRejectionEvent")
createEvent("RTCDataChannelEvent")
createEvent("RTCDTMFToneChangeEvent")
createEvent("RTCErrorEvent")
createEvent("RTCPeerConnectionIceErrorEvent")
createEvent("RTCPeerConnectionIceEvent")
createEvent("RTCTrackEvent")
createEvent("SecurityPolicyViolationEvent")
createEvent("SpeechSynthesisErrorEvent")
createEvent("SpeechSynthesisEvent")
createEvent("StorageEvent")
createEvent("SubmitEvent")
createEvent("TextEvent")
createEvent("ToggleEvent")
createEvent("TouchEvent")
createEvent("TrackEvent")
createEvent("TransitionEvent")
createEvent("UIEvent")
createEvent("UIEvents")
createEvent("WebGLContextEvent")
createEvent("WheelEvent")
createEvent(string)
createNodeIterator(Node, number, NodeFilter | null)

메서드는 Document.createNodeIterator() 새 NodeIterator 개체를 반환합니다.

MDN 참조

createProcessingInstruction(string, string)

createProcessingInstruction() 는 새 처리 명령 노드를 생성하고 반환합니다.

MDN 참조

createRange()

메서드는 Document.createRange() 새 js-nolint createRange() None을 반환합니다.

MDN 참조

createTextNode(string)

새 텍스트 노드를 만듭니다.

MDN 참조

createTreeWalker(Node, number, NodeFilter | null)

작성자 메서드는 Document.createTreeWalker() 새로 만든 TreeWalker 개체를 반환합니다.

MDN 참조

execCommand(string, boolean, string)

이 메서드는 execCommand 여러 다른 명령을 구현합니다.

exitFullscreen()

Document 메서드 exitFullscreen() 는 현재 전체 화면 모드로 표시되는 이 문서의 요소를 전체 화면 모드에서 제거하여 화면의 이전 상태를 복원할 것을 요청합니다.

MDN 참조

exitPictureInPicture()

문서 인터페이스의 메서드는 exitPictureInPicture() 현재 부동 상태인 이 문서에 포함된 비디오를 그림 모드에서 제거하여 화면의 이전 상태를 복원할 것을 요청합니다.

MDN 참조

exitPointerLock()

문서 인터페이스의 메서드는 exitPointerLock() Element.requestPointerLock을 통해 이전에 요청한 포인터 잠금을 비동기적으로 해제합니다.

MDN 참조

getElementById(string)

ID가 elementId인 노드의 하위 항목 내의 첫 번째 요소를 반환합니다.

MDN 참조

getElementsByClassName(string)

getElementsByClassName 지정된 클래스 이름을 모두 포함하는 모든 자식 요소의 메서드입니다.

MDN 참조

getElementsByName(string)

Document 개체의 메서드는 getElementsByName() 문서에서 지정된 name 특성이 있는 요소의 NodeList 컬렉션을 반환합니다.

MDN 참조

getElementsByTagName(string)
getElementsByTagName<K>(K)

getElementsByTagName 루트 노드를 포함하여 전체 문서의 메서드를 검색합니다.

MDN 참조

getElementsByTagName<K>(K)
getElementsByTagName<K>(K)
getElementsByTagName<K>(K)
getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)

지정된 네임스페이스에 속하는 지정된 태그 이름의 요소 목록을 반환합니다.

MDN 참조

getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
getElementsByTagNameNS(string | null, string)
getSelection()

Document 인터페이스의 메서드는 getSelection() 사용자가 선택한 텍스트 범위 또는 캐럿의 현재 위치를 나타내는 이 문서와 연결된 Selection 개체를 반환합니다.

MDN 참조

hasFocus()

문서 인터페이스의 메서드는 hasFocus() 문서 또는 문서 내의 요소에 포커스가 있는지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

hasStorageAccess()

문서 인터페이스의 메서드는 hasStorageAccess() 문서에 분할되지 않은 타사 쿠키에 대한 액세스 권한이 있는지 여부를 나타내는 부울 값으로 확인되는 Promise를 반환합니다.

MDN 참조

importNode<T>(T, boolean | ImportNodeOptions)

Document 개체의 importNode() 메서드는 나중에 현재 문서에 삽입된 복사본을 만듭니다.

MDN 참조

open(string | URL, string, string)
open(string, string)

이 메서드는 Document.open() 몇 가지 부작용이 있는 문서를 엽니다.

MDN 참조

queryCommandEnabled(string)

이 메서드는 Document.queryCommandEnabled() 브라우저에서 지정된 편집기 명령을 사용할 수 있는지 여부를 보고합니다.

queryCommandIndeterm(string)
queryCommandState(string)

이 메서드는 queryCommandState() 현재 선택 영역에 특정 Document.execCommand() 명령이 적용되었는지 알려줍니다.

queryCommandSupported(string)

이 메서드는 Document.queryCommandSupported() 지정된 편집기 명령이 브라우저에서 지원되는지 여부를 보고합니다.

queryCommandValue(string)
releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)

EventTarget 인터페이스의 메서드는 removeEventListener() 이전에 EventTarget.addEventListener()에 등록된 이벤트 수신기를 대상에서 제거합니다.

MDN 참조

requestStorageAccess()

requestStorageAccess() 문서 인터페이스의 메서드를 사용하면 타사 컨텍스트(즉, iframe에 포함됨)에 로드된 콘텐츠가 타사 쿠키 및 분할되지 않은 상태에 대한 액세스를 요청할 수 있습니다.

MDN 참조

startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)

문서 인터페이스의 메서드는 startViewTransition() 새 SPA(동일한 문서) 뷰 전환을 시작하고 이를 나타내는 ViewTransition 개체를 반환합니다.

MDN 참조

write(string[])

문서 인터페이스의 메서드는 write() 하나 이상의 TrustedHTML 또는 문자열 매개 변수의 텍스트를 document.open()에서 연 문서 스트림에 씁니다.

writeln(string[])

문서 인터페이스의 메서드는 writeln() 하나 이상의 TrustedHTML 또는 문자열 매개 변수에 있는 텍스트를 document.open()에서 연 문서 스트림에 쓴 다음 줄 바꿈 문자를 씁니다.

MDN 참조

상속된 메서드

append((string | Node)[])

노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 마지막 자식 뒤에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

MDN 참조

appendChild<T>(T)

노드 인터페이스의 메서드는 appendChild() 지정된 부모 노드의 자식 목록 끝에 노드를 추가합니다.

MDN 참조

cloneNode(boolean)

노드 인터페이스의 메서드는 cloneNode() 이 메서드가 호출된 노드의 중복을 반환합니다.

MDN 참조

compareDocumentPosition(Node)

노드 인터페이스의 메서드는 compareDocumentPosition() 호출되는 노드를 기준으로 인수 노드의 위치를 보고합니다.

MDN 참조

contains(Node | null)

노드 인터페이스의 메서드는 contains() 노드가 지정된 노드의 하위 항목인지, 노드 자체인지, 직접 자식 중 하나(Node.childNodes), 자식의 직접 자식 중 하나인지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

createExpression(string, XPathNSResolver | null)

MDN 참조

createNSResolver(Node)
dispatchEvent(Event)

EventTarget의 메서드는 dispatchEvent() 영향을 받는 이벤트 수신기를 적절한 순서로 호출하는 이벤트를 개체에(동기적으로) 보냅니다.

MDN 참조

elementFromPoint(number, number)
elementsFromPoint(number, number)
evaluate(string, Node, XPathNSResolver | null, number, XPathResult | null)

MDN 참조

getAnimations()

MDN 참조

getRootNode(GetRootNodeOptions)

Node 인터페이스의 메서드는 getRootNode() 컨텍스트 개체의 루트를 반환하며, 사용 가능한 경우 필요에 따라 섀도 루트를 포함합니다.

MDN 참조

hasChildNodes()

노드 인터페이스의 메서드는 hasChildNodes() 지정된 노드에 자식 노드가 있는지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

insertBefore<T>(T, Node | null)

노드 인터페이스의 메서드는 insertBefore() 지정된 부모 노드의 자식으로 참조 노드 앞에 노드를 삽입합니다.

MDN 참조

isDefaultNamespace(string | null)

노드 인터페이스의 메서드는 isDefaultNamespace() 네임스페이스 URI를 인수로 허용합니다.

MDN 참조

isEqualNode(Node | null)

노드 인터페이스의 메서드는 isEqualNode() 두 노드가 같은지 여부를 테스트합니다.

MDN 참조

isSameNode(Node | null)

isSameNode() 노드 인터페이스의 메서드는 strict 같음 연산자에 대한 === 레거시 별칭입니다.

MDN 참조

lookupNamespaceURI(string | null)

노드 인터페이스의 메서드는 lookupNamespaceURI() 접두사를 매개 변수로 사용하고 지정된 노드에서 연결된 네임스페이스 URI를 반환합니다( null 있는 경우).

MDN 참조

lookupPrefix(string | null)

노드 인터페이스의 메서드는 lookupPrefix() 지정된 네임스페이스 URI에 대한 접두사를 포함하는 문자열을 반환합니다 null (있는 경우).

MDN 참조

normalize()

노드 인터페이스의 메서드는 normalize() 지정된 노드와 모든 하위 트리를 정규화된 형식으로 만듭니다.

MDN 참조

prepend((string | Node)[])

노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 첫 번째 자식 앞에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

MDN 참조

querySelector<E>(string)
querySelector<K>(K)

선택기와 일치하는 노드의 하위 요소인 첫 번째 요소를 반환합니다.

MDN 참조

querySelector<K>(K)
querySelector<K>(K)
querySelector<K>(K)
querySelectorAll<E>(string)
querySelectorAll<K>(K)

선택기와 일치하는 노드의 모든 요소 하위 항목을 반환합니다.

MDN 참조

querySelectorAll<K>(K)
querySelectorAll<K>(K)
querySelectorAll<K>(K)
removeChild<T>(T)

노드 인터페이스의 메서드는 removeChild() DOM에서 자식 노드를 제거하고 제거된 노드를 반환합니다.

MDN 참조

replaceChild<T>(Node, T)

노드 인터페이스의 메서드는 replaceChild() 지정된(부모) 노드 내의 자식 노드를 대체합니다.

MDN 참조

replaceChildren((string | Node)[])

노드의 모든 자식을 노드로 바꾸고 노드의 문자열을 해당하는 텍스트 노드로 바꿉니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

MDN 참조

속성 세부 정보

alinkColor

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

문서 본문에서 활성 링크의 색을 반환하거나 설정합니다.

alinkColor: string

속성 값

string

all

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

문서 인터페이스의 읽기 전용 all 속성은 문서 노드에 루팅된 HTMLAllCollection을 반환합니다.

all: HTMLAllCollection

속성 값

HTMLAllCollection

anchors

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

anchors HTMLCollection의 읽기 전용 속성입니다.

anchors: HTMLCollectionOf<HTMLAnchorElement>

속성 값

HTMLCollectionOf<HTMLAnchorElement>

applets

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

Document의 속성은 applets 빈 HTMLCollection을 반환합니다.

applets: HTMLCollection

속성 값

HTMLCollection

bgColor

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

사용되지 않는 속성은 bgColor 현재 문서의 배경색을 가져오거나 설정합니다.

bgColor: string

속성 값

string

body

속성은 Document.bodynull 이러한 요소가 없는 경우를 나타냅니다.

MDN 참조

body: HTMLElement

속성 값

HTMLElement

characterSet

읽기 전용 속성은 Document.characterSet 현재 렌더링된 문서의 문자 인코딩을 반환합니다.

MDN 참조

characterSet: string

속성 값

string

charset

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of characterSet.

MDN Reference

charset: string

속성 값

string

compatMode

읽기 전용 속성은 Document.compatMode 문서가 Quirks 모드 또는 표준 모드로 렌더링되는지 여부를 나타냅니다.

MDN 참조

compatMode: string

속성 값

string

contentType

읽기 전용 속성은 Document.contentType 문서가 렌더링되는 MIME 형식을 반환합니다.

MDN 참조

contentType: string

속성 값

string

Document 속성을 cookie 사용하면 문서와 연결된 쿠키를 읽고 쓸 수 있습니다.

MDN 참조

cookie: string

속성 값

string

currentScript

이 속성은 Document.currentScript 스크립트가 현재 처리되고 있으며 JavaScript 모듈이 아닌 스크립트 요소를 반환합니다.

MDN 참조

currentScript: HTMLOrSVGScriptElement | null

속성 값

HTMLOrSVGScriptElement | null

defaultView

브라우저에서 이 속성이 읽기 전용임을 반환합니다 document.defaultView .

MDN 참조

defaultView: (Window & typeof globalThis) | null

속성 값

(Window & typeof globalThis) | null

designMode

document.designMode 는 전체 문서를 편집할 수 있는지 여부를 제어합니다.

MDN 참조

designMode: string

속성 값

string

dir

이 Document.dir 속성은 왼쪽에서 오른쪽(기본값) 또는 오른쪽에서 왼쪽으로 문서 텍스트의 방향을 나타내는 문자열입니다.

MDN 참조

dir: string

속성 값

string

doctype

doctype Document 인터페이스의 읽기 전용 속성은 현재 문서와 연결된 Doctype을 나타내는 DocumentType 개체입니다.

MDN 참조

doctype: DocumentType | null

속성 값

DocumentType | null

documentElement

문서 인터페이스의 읽기 전용 속성은 documentElement HTML 문서의 html 요소인 예제를 반환합니다.)

MDN 참조

documentElement: HTMLElement

속성 값

HTMLElement

documentURI

documentURI A 문자열의 읽기 전용 속성입니다.

MDN 참조

documentURI: string

속성 값

string

domain

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

문서 인터페이스의 속성은 domain 동일한 원본 정책에서 사용하는 현재 문서의 원본 도메인 부분을 가져오거나 설정합니다.

domain: string

속성 값

string

embeds

embeds HTMLCollection의 읽기 전용 속성입니다.

MDN 참조

embeds: HTMLCollectionOf<HTMLEmbedElement>

속성 값

HTMLCollectionOf<HTMLEmbedElement>

fgColor

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

fgColor 현재 문서의 전경색 또는 텍스트 색을 가져오거나 설정합니다.

fgColor: string

속성 값

string

forms

문서 인터페이스의 읽기 전용 속성은 forms 문서에 포함된 모든 양식 요소를 나열하는 HTMLCollection을 반환합니다.

MDN 참조

forms: HTMLCollectionOf<HTMLFormElement>

속성 값

HTMLCollectionOf<HTMLFormElement>

fragmentDirective

문서 인터페이스의 읽기 전용 속성은 fragmentDirective 현재 문서에 대한 FragmentDirective를 반환합니다.

MDN 참조

fragmentDirective: FragmentDirective

속성 값

FragmentDirective

fullscreen

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

사용되지 않는 문서 인터페이스의 fullscreen 읽기 전용 속성은 문서가 현재 전체 화면 모드로 콘텐츠를 표시하고 있는지 여부를 보고합니다.

fullscreen: boolean

속성 값

boolean

fullscreenEnabled

문서 인터페이스의 읽기 전용 fullscreenEnabled 속성은 전체 화면 모드를 사용할 수 있는지 여부를 나타냅니다.

MDN 참조

fullscreenEnabled: boolean

속성 값

boolean

head

문서 인터페이스의 읽기 전용 속성은 head 현재 문서의 헤드 요소를 반환합니다.

MDN 참조

head: HTMLHeadElement

속성 값

HTMLHeadElement

hidden

읽기 전용 속성은 Document.hidden 페이지가 숨겨진 것으로 간주되는지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

hidden: boolean

속성 값

boolean

images

Document 인터페이스의 읽기 전용 속성은 images 현재 HTML 문서에 있는 이미지 컬렉션을 반환합니다.

MDN 참조

images: HTMLCollectionOf<HTMLImageElement>

속성 값

HTMLCollectionOf<HTMLImageElement>

implementation

이 속성은 Document.implementation A DOMImplementation 개체를 반환합니다.

MDN 참조

implementation: DOMImplementation

속성 값

DOMImplementation

inputEncoding

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of characterSet.

MDN Reference

inputEncoding: string

속성 값

string

lastModified

Document 인터페이스의 속성은 lastModified 현재 문서가 마지막으로 수정된 날짜 및 현지 시간을 포함하는 문자열을 반환합니다.

MDN 참조

lastModified: string

속성 값

string

linkColor

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

이 속성은 Document.linkColor 문서 내의 링크 색을 가져오거나 설정합니다.

linkColor: string

속성 값

string

Document 인터페이스의 읽기 전용 속성은 links 모든 영역 요소의 컬렉션과 href 특성 값이 있는 문서의 요소를 반환합니다.

MDN 참조

links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>

속성 값

HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>

location

읽기 전용 속성은 Document.location 해당 URL을 변경하고 다른 URL을 로드하기 위한 메서드를 반환하고 제공합니다.

MDN 참조

Location location

속성 값

Location

mozCancelFullScreen

mozCancelFullScreen: any

속성 값

any

msExitFullscreen

msExitFullscreen: any

속성 값

any

onfullscreenchange

MDN 참조

onfullscreenchange: (this: Document, ev: Event) => any | null

속성 값

(this: Document, ev: Event) => any | null

onfullscreenerror

MDN 참조

onfullscreenerror: (this: Document, ev: Event) => any | null

속성 값

(this: Document, ev: Event) => any | null

onpointerlockchange

MDN 참조

onpointerlockchange: (this: Document, ev: Event) => any | null

속성 값

(this: Document, ev: Event) => any | null

onpointerlockerror

MDN 참조

onpointerlockerror: (this: Document, ev: Event) => any | null

속성 값

(this: Document, ev: Event) => any | null

onreadystatechange

MDN 참조

onreadystatechange: (this: Document, ev: Event) => any | null

속성 값

(this: Document, ev: Event) => any | null

onvisibilitychange

MDN 참조

onvisibilitychange: (this: Document, ev: Event) => any | null

속성 값

(this: Document, ev: Event) => any | null

ownerDocument

노드 인터페이스의 읽기 전용 ownerDocument 속성은 노드의 최상위 문서 개체를 반환합니다.

MDN 참조

ownerDocument: null

속성 값

null

pictureInPictureEnabled

사용 가능한 읽기 전용 pictureInPictureEnabled 속성입니다.

MDN 참조

pictureInPictureEnabled: boolean

속성 값

boolean

plugins

plugins HTMLCollection을 나타내는 하나 이상의 HTMLEmbedElements가 포함된 읽기 전용 속성입니다.

MDN 참조

plugins: HTMLCollectionOf<HTMLEmbedElement>

속성 값

HTMLCollectionOf<HTMLEmbedElement>

readyState

이 속성은 Document.readyState 문서의 로드 상태를 설명합니다.

MDN 참조

readyState: DocumentReadyState

속성 값

DocumentReadyState

referrer

이 속성은 Document.referrer 이 페이지에 연결된 페이지의 URI를 반환합니다.

MDN 참조

referrer: string

속성 값

string

rootElement

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

Document.rootElement 는 문서인 경우 문서의 루트 요소인 요소를 반환합니다.

rootElement: SVGSVGElement | null

속성 값

SVGSVGElement | null

scripts

문서 인터페이스의 속성은 scripts 문서의 스크립트 요소 목록을 반환합니다.

MDN 참조

scripts: HTMLCollectionOf<HTMLScriptElement>

속성 값

HTMLCollectionOf<HTMLScriptElement>

scrollingElement

scrollingElement 문서를 스크롤하는 읽기 전용 속성입니다.

MDN 참조

scrollingElement: Element | null

속성 값

Element | null

textContent

MDN 참조

null textContent

속성 값

null

timeline

문서 인터페이스의 readonly 속성은 timeline 현재 문서의 기본 타임라인을 나타냅니다.

MDN 참조

timeline: DocumentTimeline

속성 값

DocumentTimeline

title

이 속성은 document.title 문서의 현재 제목을 가져오거나 설정합니다.

MDN 참조

title: string

속성 값

string

URL

문서 인터페이스의 읽기 전용 속성은 URL 문서 위치를 문자열로 반환합니다.

MDN 참조

URL: string

속성 값

string

visibilityState

읽기 전용 속성은 Document.visibilityState 문서의 표시 유형을 반환합니다.

MDN 참조

visibilityState: DocumentVisibilityState

속성 값

DocumentVisibilityState

vlinkColor

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

이 속성은 Document.vlinkColor 사용자가 문서에서 방문한 링크의 색을 가져오거나 설정합니다.

vlinkColor: string

속성 값

string

webkitExitFullscreen

webkitExitFullscreen: void

속성 값

void

상속된 속성 세부 정보

activeElement

키 이벤트를 라우팅할 문서 내의 가장 깊은 요소를 반환합니다. 이것은 대체로 문서의 포커스가 있는 요소입니다.

이 API의 목적을 위해 자식 검색 컨텍스트에 초점을 맞춘 경우 해당 컨테이너는 부모 검색 컨텍스트에 초점을 맞춥니다. 예를 들어 사용자가 iframe의 텍스트 컨트롤로 포커스를 이동하는 경우 iframe은 iframe의 노드 문서에서 activeElement API에서 반환하는 요소입니다.

마찬가지로, 포커스가 있는 요소가 documentOrShadowRoot와 다른 노드 트리에 있는 경우 documentOrShadowRoot가 포커스된 요소의 섀도 포함 포괄 상위 항목인 경우 documentOrShadowRoot와 동일한 노드 트리에 있는 호스트가 반환되고, 그렇지 않으면 null이 됩니다.

MDN 참조

activeElement: Element | null

속성 값

Element | null

DocumentOrShadowRoot.activeElement에서 상속된

adoptedStyleSheets

MDN 참조

adoptedStyleSheets: CSSStyleSheet[]

속성 값

CSSStyleSheet[]

DocumentOrShadowRoot.adoptedStyleSheets에서 상속된

ATTRIBUTE_NODE

ATTRIBUTE_NODE: 2

속성 값

2

Node.ATTRIBUTE_NODE 상속된

baseURI

노드 인터페이스의 읽기 전용 baseURI 속성은 노드를 포함하는 문서의 절대 기본 URL을 반환합니다.

MDN 참조

baseURI: string

속성 값

string

Node.baseURI에서 상속된

CDATA_SECTION_NODE

노드는 CDATASection 노드입니다.

CDATA_SECTION_NODE: 4

속성 값

4

Node.CDATA_SECTION_NODE 상속된

childElementCount

MDN 참조

childElementCount: number

속성 값

number

ParentNode.childElementCount에서 상속된

childNodes

노드 인터페이스의 읽기 전용 childNodes 속성은 첫 번째 자식 노드에 인덱 0스가 할당된 라이브를 반환합니다.

MDN 참조

childNodes: NodeListOf<ChildNode>

속성 값

NodeListOf<ChildNode>

Node.childNodes에서 상속된

children

자식 요소를 반환합니다.

MDN 참조

children: HTMLCollection

속성 값

HTMLCollection

ParentNode.children에서 상속된

COMMENT_NODE

노드는 주석 노드입니다.

COMMENT_NODE: 8

속성 값

8

Node.COMMENT_NODE 상속된

DOCUMENT_FRAGMENT_NODE

노드는 DocumentFragment 노드입니다.

DOCUMENT_FRAGMENT_NODE: 11

속성 값

11

Node.DOCUMENT_FRAGMENT_NODE 상속된

DOCUMENT_NODE

노드는 문서입니다.

DOCUMENT_NODE: 9

속성 값

9

Node.DOCUMENT_NODE 상속된

DOCUMENT_POSITION_CONTAINED_BY

다른 노드가 노드의 하위 항목인 경우를 설정합니다.

DOCUMENT_POSITION_CONTAINED_BY: 16

속성 값

16

Node.DOCUMENT_POSITION_CONTAINED_BY 상속된

DOCUMENT_POSITION_CONTAINS

다른 노드가 노드의 상위 항목인 경우를 설정합니다.

DOCUMENT_POSITION_CONTAINS: 8

속성 값

8

Node.DOCUMENT_POSITION_CONTAINS 상속된

DOCUMENT_POSITION_DISCONNECTED

노드와 다른 노드가 동일한 트리에 없을 때 설정합니다.

DOCUMENT_POSITION_DISCONNECTED: 1

속성 값

1

Node.DOCUMENT_POSITION_DISCONNECTED 상속된

DOCUMENT_POSITION_FOLLOWING

다른 노드가 다음 노드일 때 설정합니다.

DOCUMENT_POSITION_FOLLOWING: 4

속성 값

4

Node.DOCUMENT_POSITION_FOLLOWING 상속된

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32

속성 값

32

Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC 상속된

DOCUMENT_POSITION_PRECEDING

다른 노드가 이전 노드일 때 설정합니다.

DOCUMENT_POSITION_PRECEDING: 2

속성 값

2

Node.DOCUMENT_POSITION_PRECEDING 상속된

DOCUMENT_TYPE_NODE

node는 doctype입니다.

DOCUMENT_TYPE_NODE: 10

속성 값

10

Node.DOCUMENT_TYPE_NODE 상속된

ELEMENT_NODE

node는 요소입니다.

ELEMENT_NODE: 1

속성 값

1

Node.ELEMENT_NODE 상속된

ENTITY_NODE

ENTITY_NODE: 6

속성 값

6

Node.ENTITY_NODE 상속된

ENTITY_REFERENCE_NODE

ENTITY_REFERENCE_NODE: 5

속성 값

5

Node.ENTITY_REFERENCE_NODE 상속된

firstChild

노드 인터페이스의 읽기 전용 firstChild 속성은 트리에서 노드의 첫 번째 자식을 반환하거나 null 노드에 자식이 없는 경우 반환합니다.

MDN 참조

firstChild: ChildNode | null

속성 값

ChildNode | null

Node.firstChild에서 상속된

firstElementChild

요소인 첫 번째 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다.

MDN 참조

firstElementChild: Element | null

속성 값

Element | null

ParentNode.firstElementChild에서 상속된

fonts

MDN 참조

fonts: FontFaceSet

속성 값

FontFaceSet

FontFaceSource.fonts에서 상속된

fullscreenElement

문서의 전체 화면 요소를 반환합니다.

MDN 참조

fullscreenElement: Element | null

속성 값

Element | null

DocumentOrShadowRoot.fullscreenElement에서 상속된

isConnected

노드 인터페이스의 읽기 전용 isConnected 속성은 노드가 Document 개체에 직접 또는 간접적으로 연결되어 있는지 여부를 나타내는 부울을 반환합니다.

MDN 참조

isConnected: boolean

속성 값

boolean

Node.isConnected에서 상속된

lastChild

노드 인터페이스의 읽기 전용 lastChild 속성은 노드의 마지막 자식 또는 null 자식 노드가 없는 경우 반환합니다.

MDN 참조

lastChild: ChildNode | null

속성 값

ChildNode | null

Node.lastChild에서 상속된

lastElementChild

요소인 마지막 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다.

MDN 참조

lastElementChild: Element | null

속성 값

Element | null

ParentNode.lastElementChild에서 상속된

nextSibling

노드 인터페이스의 읽기 전용 nextSibling 속성은 부모 Node.childNodes에서 지정된 노드 바로 뒤에 노드를 반환하거나 지정된 노드가 부모 요소의 마지막 자식인 경우 반환 null 합니다.

MDN 참조

nextSibling: ChildNode | null

속성 값

ChildNode | null

Node.nextSibling에서 상속된

nodeName

노드의 읽기 전용 nodeName 속성은 현재 노드의 이름을 문자열로 반환합니다.

MDN 참조

nodeName: string

속성 값

string

Node.nodeName에서 상속된

nodeType

노드 인터페이스의 읽기 전용 nodeType 속성은 노드가 무엇인지 식별하는 정수입니다.

MDN 참조

nodeType: number

속성 값

number

Node.nodeType에서 상속된

nodeValue

노드 인터페이스의 속성은 nodeValue 현재 노드의 값을 반환하거나 설정합니다.

MDN 참조

nodeValue: string | null

속성 값

string | null

Node.nodeValue에서 상속된

NOTATION_NODE

NOTATION_NODE: 12

속성 값

12

Node.NOTATION_NODE 상속된

onabort

MDN 참조

onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: UIEvent) => any | null

GlobalEventHandlers.onabort에서 상속된

onanimationcancel

MDN 참조

onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

GlobalEventHandlers.onanimationcancel에서 상속된

onanimationend

MDN 참조

onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

GlobalEventHandlers.onanimationend에서 상속된

onanimationiteration

MDN 참조

onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

GlobalEventHandlers.onanimationiteration에서 상속된

onanimationstart

MDN 참조

onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: AnimationEvent) => any | null

GlobalEventHandlers.onanimationstart에서 상속된

onauxclick

MDN 참조

onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onauxclick에서 상속된

onbeforeinput

MDN 참조

onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: InputEvent) => any | null

GlobalEventHandlers.onbeforeinput에서 상속된

onbeforematch

MDN 참조

onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

상속된 개체 GlobalEventHandlers.onbeforematch

onbeforetoggle

MDN 참조

onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: ToggleEvent) => any | null

상속된 개체 GlobalEventHandlers.onbeforetoggle

onblur

MDN 참조

onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: FocusEvent) => any | null

GlobalEventHandlers.onblur에서 상속된

oncancel

MDN 참조

oncancel: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.oncancel에서 상속된

oncanplay

MDN 참조

oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.oncanplay에서 상속된

oncanplaythrough

MDN 참조

oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.oncanplaythrough에서 상속된

onchange

MDN 참조

onchange: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onchange에서 상속된

onclick

MDN 참조

onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onclick에서 상속된

onclose

MDN 참조

onclose: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onclose에서 상속된

oncontextlost

MDN 참조

oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

상속된 개체 GlobalEventHandlers.oncontextlost

oncontextmenu

MDN 참조

oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.oncontextmenu에서 상속된

oncontextrestored

MDN 참조

oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

상속된 개체 GlobalEventHandlers.oncontextrestored

oncopy

MDN 참조

oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

상속된 개체 GlobalEventHandlers.oncopy

oncuechange

MDN 참조

oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.oncuechange에서 상속된

oncut

MDN 참조

oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

상속된 개체 GlobalEventHandlers.oncut

ondblclick

MDN 참조

ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.ondblclick에서 상속된

ondrag

MDN 참조

ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: DragEvent) => any | null

GlobalEventHandlers.ondrag에서 상속된

ondragend

MDN 참조

ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: DragEvent) => any | null

GlobalEventHandlers.ondragend에서 상속된

ondragenter

MDN 참조

ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: DragEvent) => any | null

GlobalEventHandlers.ondragenter에서 상속된

ondragleave

MDN 참조

ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: DragEvent) => any | null

GlobalEventHandlers.ondragleave에서 상속된

ondragover

MDN 참조

ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: DragEvent) => any | null

GlobalEventHandlers.ondragover에서 상속된

ondragstart

MDN 참조

ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: DragEvent) => any | null

GlobalEventHandlers.ondragstart에서 상속된

ondrop

MDN 참조

ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: DragEvent) => any | null

GlobalEventHandlers.ondrop에서 상속된

ondurationchange

MDN 참조

ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.ondurationchange에서 상속된

onemptied

MDN 참조

onemptied: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onemptied에서 상속된

onended

MDN 참조

onended: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onended에서 상속된

onerror

MDN 참조

onerror: OnErrorEventHandler

속성 값

OnErrorEventHandler

GlobalEventHandlers.onerror에서 상속된

onfocus

MDN 참조

onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: FocusEvent) => any | null

GlobalEventHandlers.onfocus에서 상속된

onformdata

MDN 참조

onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: FormDataEvent) => any | null

GlobalEventHandlers.onformdata에서 상속된

ongotpointercapture

MDN 참조

ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.ongotpointercapture에서 상속된

oninput

MDN 참조

oninput: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.oninput에서 상속된

oninvalid

MDN 참조

oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.oninvalid에서 상속된

onkeydown

MDN 참조

onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

GlobalEventHandlers.onkeydown에서 상속된

onkeypress

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

GlobalEventHandlers.onkeypress에서 상속된

onkeyup

MDN 참조

onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null

GlobalEventHandlers.onkeyup에서 상속된

onload

MDN 참조

onload: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onload에서 상속된

onloadeddata

MDN 참조

onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onloadeddata에서 상속된

onloadedmetadata

MDN 참조

onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onloadedmetadata에서 상속된

onloadstart

MDN 참조

onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onloadstart에서 상속된

onlostpointercapture

MDN 참조

onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onlostpointercapture에서 상속된

onmousedown

MDN 참조

onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.onmousedown에서 상속된

onmouseenter

MDN 참조

onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.onmouseenter에서 상속된

onmouseleave

MDN 참조

onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.onmouseleave에서 상속된

onmousemove

MDN 참조

onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.onmousemove에서 상속된

onmouseout

MDN 참조

onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.onmouseout에서 상속된

onmouseover

MDN 참조

onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.onmouseover에서 상속된

onmouseup

MDN 참조

onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: MouseEvent) => any | null

GlobalEventHandlers.onmouseup에서 상속된

onpaste

MDN 참조

onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null

상속된 개체 GlobalEventHandlers.onpaste

onpause

MDN 참조

onpause: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onpause에서 상속된

onplay

MDN 참조

onplay: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onplay에서 상속된

onplaying

MDN 참조

onplaying: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onplaying에서 상속된

onpointercancel

MDN 참조

onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointercancel에서 상속된

onpointerdown

MDN 참조

onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointerdown에서 상속된

onpointerenter

MDN 참조

onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointerenter에서 상속된

onpointerleave

MDN 참조

onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointerleave에서 상속된

onpointermove

MDN 참조

onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointermove에서 상속된

onpointerout

MDN 참조

onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointerout에서 상속된

onpointerover

MDN 참조

onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointerover에서 상속된

onpointerrawupdate

보안 컨텍스트에서만 사용할 수 있습니다.

MDN 참조

onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

상속된 개체 GlobalEventHandlers.onpointerrawupdate

onpointerup

MDN 참조

onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: PointerEvent) => any | null

GlobalEventHandlers.onpointerup에서 상속된

onprogress

MDN 참조

onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: ProgressEvent) => any | null

GlobalEventHandlers.onprogress에서 상속된

onratechange

MDN 참조

onratechange: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onratechange에서 상속된

onreset

MDN 참조

onreset: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onreset에서 상속된

onresize

MDN 참조

onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: UIEvent) => any | null

GlobalEventHandlers.onresize에서 상속된

onscroll

MDN 참조

onscroll: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onscroll에서 상속된

onscrollend

MDN 참조

onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

상속된 개체 GlobalEventHandlers.onscrollend

onsecuritypolicyviolation

MDN 참조

onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null

GlobalEventHandlers.onsecuritypolicyviolation에서 상속된

onseeked

MDN 참조

onseeked: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onseeked에서 상속된

onseeking

MDN 참조

onseeking: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onseeking에서 상속된

onselect

MDN 참조

onselect: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onselect에서 상속된

onselectionchange

MDN 참조

onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onselectionchange에서 상속된

onselectstart

MDN 참조

onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onselectstart에서 상속된

onslotchange

MDN 참조

onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onslotchange에서 상속된

onstalled

MDN 참조

onstalled: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onstalled에서 상속된

onsubmit

MDN 참조

onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: SubmitEvent) => any | null

GlobalEventHandlers.onsubmit에서 상속된

onsuspend

MDN 참조

onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onsuspend에서 상속된

ontimeupdate

MDN 참조

ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.ontimeupdate에서 상속된

ontoggle

MDN 참조

ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: ToggleEvent) => any | null

GlobalEventHandlers.ontoggle에서 상속된

ontouchcancel

MDN 참조

ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

GlobalEventHandlers.ontouchcancel에서 상속된

ontouchend

MDN 참조

ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

GlobalEventHandlers.ontouchend에서 상속된

ontouchmove

MDN 참조

ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

GlobalEventHandlers.ontouchmove에서 상속된

ontouchstart

MDN 참조

ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TouchEvent) => any | null

GlobalEventHandlers.ontouchstart에서 상속된

ontransitioncancel

MDN 참조

ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

GlobalEventHandlers.ontransitioncancel에서 상속됨

ontransitionend

MDN 참조

ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

GlobalEventHandlers.ontransitionend에서 상속됨

ontransitionrun

MDN 참조

ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

GlobalEventHandlers.ontransitionrun에서 상속된

ontransitionstart

MDN 참조

ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: TransitionEvent) => any | null

GlobalEventHandlers.ontransitionstart에서 상속된

onvolumechange

MDN 참조

onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onvolumechange에서 상속된

onwaiting

MDN 참조

onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onwaiting에서 상속된

onwebkitanimationend

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of onanimationend.

MDN Reference

onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onwebkitanimationend에서 상속된

onwebkitanimationiteration

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of onanimationiteration.

MDN Reference

onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onwebkitanimationiteration에서 상속됩니다.

onwebkitanimationstart

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of onanimationstart.

MDN Reference

onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onwebkitanimationstart에서 상속된

onwebkittransitionend

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of ontransitionend.

MDN Reference

onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null

속성 값

(this: GlobalEventHandlers, ev: Event) => any | null

GlobalEventHandlers.onwebkittransitionend에서 상속된

onwheel

MDN 참조

onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null

속성 값

(this: GlobalEventHandlers, ev: WheelEvent) => any | null

GlobalEventHandlers.onwheel에서 상속된

parentElement

노드 인터페이스의 읽기 전용 parentElement 속성은 DOM 노드의 부모 요소를 반환하거나 null 노드에 부모가 없거나 해당 부모가 DOM 요소가 아닌 경우 반환됩니다.

MDN 참조

parentElement: HTMLElement | null

속성 값

HTMLElement | null

Node.parentElement에서 상속된

parentNode

노드 인터페이스의 읽기 전용 parentNode 속성은 DOM 트리에서 지정된 노드의 부모를 반환합니다.

MDN 참조

parentNode: ParentNode | null

속성 값

ParentNode | null

Node.parentNode에서 상속된

pictureInPictureElement

MDN 참조

pictureInPictureElement: Element | null

속성 값

Element | null

DocumentOrShadowRoot.pictureInPictureElement에서 상속된

pointerLockElement

MDN 참조

pointerLockElement: Element | null

속성 값

Element | null

DocumentOrShadowRoot.pointerLockElement에서 상속된

previousSibling

노드 인터페이스의 읽기 전용 previousSibling 속성은 부모 노드에서 지정한 노드 바로 앞에 있는 노드를 반환하거나 null 지정된 노드가 해당 목록의 첫 번째 노드인 경우 반환합니다.

MDN 참조

previousSibling: ChildNode | null

속성 값

ChildNode | null

Node.previousSibling에서 상속된

PROCESSING_INSTRUCTION_NODE

node는 ProcessingInstruction 노드입니다.

PROCESSING_INSTRUCTION_NODE: 7

속성 값

7

Node.PROCESSING_INSTRUCTION_NODE 상속된

styleSheets

MDN 참조

styleSheets: StyleSheetList

속성 값

StyleSheetList

DocumentOrShadowRoot.styleSheets에서 상속된

TEXT_NODE

노드는 텍스트 노드입니다.

TEXT_NODE: 3

속성 값

3

Node.TEXT_NODE 상속된

메서드 세부 정보

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)

function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)

매개 변수

type

string

listener

EventListenerOrEventListenerObject

options

boolean | AddEventListenerOptions

addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)

EventTarget 인터페이스의 메서드는 addEventListener() 지정된 이벤트가 대상에 배달될 때마다 호출되는 함수를 설정합니다.

MDN 참조

function addEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions)

매개 변수

type

K

listener

(this: Document, ev: DocumentEventMap[K]) => any

options

boolean | AddEventListenerOptions

adoptNode<T>(T)

Document.adoptNode() 는 다른 문서에서 메서드의 문서로 노드/dom을 전송합니다.

MDN 참조

function adoptNode<T>(node: T): T

매개 변수

node

T

반품

T

captureEvents()

경고

이 API는 이제 사용되지 않습니다.

function captureEvents()

caretPositionFromPoint(number, number, CaretPositionFromPointOptions)

Document 인터페이스의 메서드는 caretPositionFromPoint() 해당 노드 내에서 caret 및 caret의 문자 오프셋과 함께 DOM 노드를 포함하는 CaretPosition 개체를 반환합니다.

MDN 참조

function caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null

매개 변수

x

number

y

number

options

CaretPositionFromPointOptions

반품

CaretPosition | null

caretRangeFromPoint(number, number)

경고

이 API는 이제 사용되지 않습니다.

function caretRangeFromPoint(x: number, y: number): Range | null

매개 변수

x

number

y

number

반품

Range | null

clear()

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

메서드는 Document.clear() 아무 작업도 수행하지 않지만 오류가 발생하지 않습니다.

function clear()

close()

이 메서드는 Document.close() Document.open()을 사용하여 열린 문서에 대한 쓰기를 완료합니다.

MDN 참조

function close()

createAttribute(string)

메서드는 Document.createAttribute() 새 특성 노드를 만들고 반환합니다.

MDN 참조

function createAttribute(localName: string): Attr

매개 변수

localName

string

반품

Attr

createAttributeNS(string | null, string)

메서드는 Document.createAttributeNS() 지정된 네임스페이스 URI 및 정규화된 이름을 사용하여 새 특성 노드를 만들고 반환합니다.

MDN 참조

function createAttributeNS(namespace: string | null, qualifiedName: string): Attr

매개 변수

namespace

string | null

qualifiedName

string

반품

Attr

createCDATASection(string)

createCDATASection() 는 새 CDATA 섹션 노드를 만들고 반환합니다.

MDN 참조

function createCDATASection(data: string): CDATASection

매개 변수

data

string

반품

CDATASection

createComment(string)

createComment() 는 새 주석 노드를 만들고 반환합니다.

MDN 참조

function createComment(data: string): Comment

매개 변수

data

string

반품

Comment

createDocumentFragment()

DOM 노드를 추가하여 오프스크린 DOM 트리를 빌드할 수 있는 빈 DocumentFragment를 새로 만듭니다.

MDN 참조

function createDocumentFragment(): DocumentFragment

반품

DocumentFragment

createElement(string, ElementCreationOptions)

function createElement(tagName: string, options?: ElementCreationOptions): HTMLElement

매개 변수

tagName

string

options

ElementCreationOptions

반품

HTMLElement

createElement<K>(K, ElementCreationOptions)

HTML 문서에서 메서드는 document.createElement() 지정된 localNameHTML 요소를 만들거나 인식할 수 없는 경우 localName HTMLUnknownElement를 만듭니다.

MDN 참조

function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]

매개 변수

tagName

K

options

ElementCreationOptions

반품

HTMLElementTagNameMap[K]

createElement<K>(K, ElementCreationOptions)

경고

이 API는 이제 사용되지 않습니다.

function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]

매개 변수

tagName

K

options

ElementCreationOptions

반품

HTMLElementDeprecatedTagNameMap[K]

createElementNS("http://www.w3.org/1998/Math/MathML", string)

function createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement

매개 변수

namespaceURI

"http://www.w3.org/1998/Math/MathML"

qualifiedName

string

반품

MathMLElement

createElementNS("http://www.w3.org/1999/xhtml", string)

지정된 네임스페이스 URI 및 정규화된 이름을 사용하여 요소를 만듭니다.

MDN 참조

function createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement

매개 변수

namespaceURI

"http://www.w3.org/1999/xhtml"

qualifiedName

string

반품

HTMLElement

createElementNS("http://www.w3.org/2000/svg", string)

function createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement

매개 변수

namespaceURI

"http://www.w3.org/2000/svg"

qualifiedName

string

반품

SVGElement

createElementNS(string | null, string, ElementCreationOptions)

function createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element

매개 변수

namespaceURI

string | null

qualifiedName

string

options

ElementCreationOptions

반품

Element

createElementNS(string | null, string, string | ElementCreationOptions)

function createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element

매개 변수

namespace

string | null

qualifiedName

string

options

string | ElementCreationOptions

반품

Element

createElementNS<K>("http://www.w3.org/1998/Math/MathML", K)

function createElementNS<K>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]

매개 변수

namespaceURI

"http://www.w3.org/1998/Math/MathML"

qualifiedName

K

반품

MathMLElementTagNameMap[K]

createElementNS<K>("http://www.w3.org/2000/svg", K)

function createElementNS<K>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]

매개 변수

namespaceURI

"http://www.w3.org/2000/svg"

qualifiedName

K

반품

SVGElementTagNameMap[K]

createEvent("AnimationEvent")

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

지정된 형식의 이벤트를 만듭니다.

function createEvent(eventInterface: "AnimationEvent"): AnimationEvent

매개 변수

eventInterface

"AnimationEvent"

반품

AnimationEvent

createEvent("AnimationPlaybackEvent")

function createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent

매개 변수

eventInterface

"AnimationPlaybackEvent"

반품

AnimationPlaybackEvent

createEvent("AudioProcessingEvent")

function createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent

매개 변수

eventInterface

"AudioProcessingEvent"

반품

AudioProcessingEvent

createEvent("BeforeUnloadEvent")

function createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent

매개 변수

eventInterface

"BeforeUnloadEvent"

반품

BeforeUnloadEvent

createEvent("BlobEvent")

function createEvent(eventInterface: "BlobEvent"): BlobEvent

매개 변수

eventInterface

"BlobEvent"

반품

BlobEvent

createEvent("ClipboardEvent")

function createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent

매개 변수

eventInterface

"ClipboardEvent"

반품

ClipboardEvent

createEvent("CloseEvent")

function createEvent(eventInterface: "CloseEvent"): CloseEvent

매개 변수

eventInterface

"CloseEvent"

반품

CloseEvent

createEvent("CompositionEvent")

function createEvent(eventInterface: "CompositionEvent"): CompositionEvent

매개 변수

eventInterface

"CompositionEvent"

반품

CompositionEvent

createEvent("ContentVisibilityAutoStateChangeEvent")

function createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent

매개 변수

eventInterface

"ContentVisibilityAutoStateChangeEvent"

반품

ContentVisibilityAutoStateChangeEvent

createEvent("CookieChangeEvent")

function createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent

매개 변수

eventInterface

"CookieChangeEvent"

반품

CookieChangeEvent

createEvent("CustomEvent")

function createEvent(eventInterface: "CustomEvent"): CustomEvent

매개 변수

eventInterface

"CustomEvent"

반품

CustomEvent

createEvent("DeviceMotionEvent")

function createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent

매개 변수

eventInterface

"DeviceMotionEvent"

반품

DeviceMotionEvent

createEvent("DeviceOrientationEvent")

function createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent

매개 변수

eventInterface

"DeviceOrientationEvent"

반품

DeviceOrientationEvent

createEvent("DragEvent")

function createEvent(eventInterface: "DragEvent"): DragEvent

매개 변수

eventInterface

"DragEvent"

반품

DragEvent

createEvent("ErrorEvent")

function createEvent(eventInterface: "ErrorEvent"): ErrorEvent

매개 변수

eventInterface

"ErrorEvent"

반품

ErrorEvent

createEvent("Event")

function createEvent(eventInterface: "Event"): Event

매개 변수

eventInterface

"Event"

반품

Event

createEvent("Events")

function createEvent(eventInterface: "Events"): Event

매개 변수

eventInterface

"Events"

반품

Event

createEvent("FocusEvent")

function createEvent(eventInterface: "FocusEvent"): FocusEvent

매개 변수

eventInterface

"FocusEvent"

반품

FocusEvent

createEvent("FontFaceSetLoadEvent")

function createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent

매개 변수

eventInterface

"FontFaceSetLoadEvent"

반품

FontFaceSetLoadEvent

createEvent("FormDataEvent")

function createEvent(eventInterface: "FormDataEvent"): FormDataEvent

매개 변수

eventInterface

"FormDataEvent"

반품

FormDataEvent

createEvent("GamepadEvent")

function createEvent(eventInterface: "GamepadEvent"): GamepadEvent

매개 변수

eventInterface

"GamepadEvent"

반품

GamepadEvent

createEvent("HashChangeEvent")

function createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent

매개 변수

eventInterface

"HashChangeEvent"

반품

HashChangeEvent

createEvent("IDBVersionChangeEvent")

function createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent

매개 변수

eventInterface

"IDBVersionChangeEvent"

반품

IDBVersionChangeEvent

createEvent("InputEvent")

function createEvent(eventInterface: "InputEvent"): InputEvent

매개 변수

eventInterface

"InputEvent"

반품

InputEvent

createEvent("KeyboardEvent")

function createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent

매개 변수

eventInterface

"KeyboardEvent"

반품

KeyboardEvent

createEvent("MediaEncryptedEvent")

function createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent

매개 변수

eventInterface

"MediaEncryptedEvent"

반품

MediaEncryptedEvent

createEvent("MediaKeyMessageEvent")

function createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent

매개 변수

eventInterface

"MediaKeyMessageEvent"

반품

MediaKeyMessageEvent

createEvent("MediaQueryListEvent")

function createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent

매개 변수

eventInterface

"MediaQueryListEvent"

반품

MediaQueryListEvent

createEvent("MediaStreamTrackEvent")

function createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent

매개 변수

eventInterface

"MediaStreamTrackEvent"

반품

MediaStreamTrackEvent

createEvent("MessageEvent")

function createEvent(eventInterface: "MessageEvent"): MessageEvent

매개 변수

eventInterface

"MessageEvent"

반품

MessageEvent

createEvent("MIDIConnectionEvent")

function createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent

매개 변수

eventInterface

"MIDIConnectionEvent"

반품

MIDIConnectionEvent

createEvent("MIDIMessageEvent")

function createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent

매개 변수

eventInterface

"MIDIMessageEvent"

반품

MIDIMessageEvent

createEvent("MouseEvent")

function createEvent(eventInterface: "MouseEvent"): MouseEvent

매개 변수

eventInterface

"MouseEvent"

반품

MouseEvent

createEvent("MouseEvents")

function createEvent(eventInterface: "MouseEvents"): MouseEvent

매개 변수

eventInterface

"MouseEvents"

반품

MouseEvent

createEvent("OfflineAudioCompletionEvent")

function createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent

매개 변수

eventInterface

"OfflineAudioCompletionEvent"

반품

OfflineAudioCompletionEvent

createEvent("PageRevealEvent")

function createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent

매개 변수

eventInterface

"PageRevealEvent"

반품

PageRevealEvent

createEvent("PageSwapEvent")

function createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent

매개 변수

eventInterface

"PageSwapEvent"

반품

PageSwapEvent

createEvent("PageTransitionEvent")

function createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent

매개 변수

eventInterface

"PageTransitionEvent"

반품

PageTransitionEvent

createEvent("PaymentMethodChangeEvent")

function createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent

매개 변수

eventInterface

"PaymentMethodChangeEvent"

반품

PaymentMethodChangeEvent

createEvent("PaymentRequestUpdateEvent")

function createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent

매개 변수

eventInterface

"PaymentRequestUpdateEvent"

반품

PaymentRequestUpdateEvent

createEvent("PictureInPictureEvent")

function createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent

매개 변수

eventInterface

"PictureInPictureEvent"

반품

PictureInPictureEvent

createEvent("PointerEvent")

function createEvent(eventInterface: "PointerEvent"): PointerEvent

매개 변수

eventInterface

"PointerEvent"

반품

PointerEvent

createEvent("PopStateEvent")

function createEvent(eventInterface: "PopStateEvent"): PopStateEvent

매개 변수

eventInterface

"PopStateEvent"

반품

PopStateEvent

createEvent("ProgressEvent")

function createEvent(eventInterface: "ProgressEvent"): ProgressEvent

매개 변수

eventInterface

"ProgressEvent"

반품

ProgressEvent

createEvent("PromiseRejectionEvent")

function createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent

매개 변수

eventInterface

"PromiseRejectionEvent"

반품

PromiseRejectionEvent

createEvent("RTCDataChannelEvent")

function createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent

매개 변수

eventInterface

"RTCDataChannelEvent"

반품

RTCDataChannelEvent

createEvent("RTCDTMFToneChangeEvent")

function createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent

매개 변수

eventInterface

"RTCDTMFToneChangeEvent"

반품

RTCDTMFToneChangeEvent

createEvent("RTCErrorEvent")

function createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent

매개 변수

eventInterface

"RTCErrorEvent"

반품

RTCErrorEvent

createEvent("RTCPeerConnectionIceErrorEvent")

function createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent

매개 변수

eventInterface

"RTCPeerConnectionIceErrorEvent"

반품

RTCPeerConnectionIceErrorEvent

createEvent("RTCPeerConnectionIceEvent")

function createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent

매개 변수

eventInterface

"RTCPeerConnectionIceEvent"

반품

RTCPeerConnectionIceEvent

createEvent("RTCTrackEvent")

function createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent

매개 변수

eventInterface

"RTCTrackEvent"

반품

RTCTrackEvent

createEvent("SecurityPolicyViolationEvent")

function createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent

매개 변수

eventInterface

"SecurityPolicyViolationEvent"

반품

SecurityPolicyViolationEvent

createEvent("SpeechSynthesisErrorEvent")

function createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent

매개 변수

eventInterface

"SpeechSynthesisErrorEvent"

반품

SpeechSynthesisErrorEvent

createEvent("SpeechSynthesisEvent")

function createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent

매개 변수

eventInterface

"SpeechSynthesisEvent"

반품

SpeechSynthesisEvent

createEvent("StorageEvent")

function createEvent(eventInterface: "StorageEvent"): StorageEvent

매개 변수

eventInterface

"StorageEvent"

반품

StorageEvent

createEvent("SubmitEvent")

function createEvent(eventInterface: "SubmitEvent"): SubmitEvent

매개 변수

eventInterface

"SubmitEvent"

반품

SubmitEvent

createEvent("TextEvent")

function createEvent(eventInterface: "TextEvent"): TextEvent

매개 변수

eventInterface

"TextEvent"

반품

TextEvent

createEvent("ToggleEvent")

function createEvent(eventInterface: "ToggleEvent"): ToggleEvent

매개 변수

eventInterface

"ToggleEvent"

반품

ToggleEvent

createEvent("TouchEvent")

function createEvent(eventInterface: "TouchEvent"): TouchEvent

매개 변수

eventInterface

"TouchEvent"

반품

TouchEvent

createEvent("TrackEvent")

function createEvent(eventInterface: "TrackEvent"): TrackEvent

매개 변수

eventInterface

"TrackEvent"

반품

TrackEvent

createEvent("TransitionEvent")

function createEvent(eventInterface: "TransitionEvent"): TransitionEvent

매개 변수

eventInterface

"TransitionEvent"

반품

TransitionEvent

createEvent("UIEvent")

function createEvent(eventInterface: "UIEvent"): UIEvent

매개 변수

eventInterface

"UIEvent"

반품

UIEvent

createEvent("UIEvents")

function createEvent(eventInterface: "UIEvents"): UIEvent

매개 변수

eventInterface

"UIEvents"

반품

UIEvent

createEvent("WebGLContextEvent")

function createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent

매개 변수

eventInterface

"WebGLContextEvent"

반품

WebGLContextEvent

createEvent("WheelEvent")

function createEvent(eventInterface: "WheelEvent"): WheelEvent

매개 변수

eventInterface

"WheelEvent"

반품

WheelEvent

createEvent(string)

function createEvent(eventInterface: string): Event

매개 변수

eventInterface

string

반품

Event

createNodeIterator(Node, number, NodeFilter | null)

메서드는 Document.createNodeIterator() 새 NodeIterator 개체를 반환합니다.

MDN 참조

function createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator

매개 변수

root

Node

whatToShow

number

filter

NodeFilter | null

반품

NodeIterator

createProcessingInstruction(string, string)

createProcessingInstruction() 는 새 처리 명령 노드를 생성하고 반환합니다.

MDN 참조

function createProcessingInstruction(target: string, data: string): ProcessingInstruction

매개 변수

target

string

data

string

반품

ProcessingInstruction

createRange()

메서드는 Document.createRange() 새 js-nolint createRange() None을 반환합니다.

MDN 참조

function createRange(): Range

반품

Range

createTextNode(string)

새 텍스트 노드를 만듭니다.

MDN 참조

function createTextNode(data: string): Text

매개 변수

data

string

반품

Text

createTreeWalker(Node, number, NodeFilter | null)

작성자 메서드는 Document.createTreeWalker() 새로 만든 TreeWalker 개체를 반환합니다.

MDN 참조

function createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker

매개 변수

root

Node

whatToShow

number

filter

NodeFilter | null

반품

TreeWalker

execCommand(string, boolean, string)

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

이 메서드는 execCommand 여러 다른 명령을 구현합니다.

function execCommand(commandId: string, showUI?: boolean, value?: string): boolean

매개 변수

commandId

string

showUI

boolean

value

string

반품

boolean

exitFullscreen()

Document 메서드 exitFullscreen() 는 현재 전체 화면 모드로 표시되는 이 문서의 요소를 전체 화면 모드에서 제거하여 화면의 이전 상태를 복원할 것을 요청합니다.

MDN 참조

function exitFullscreen(): Promise<void>

반품

Promise<void>

exitPictureInPicture()

문서 인터페이스의 메서드는 exitPictureInPicture() 현재 부동 상태인 이 문서에 포함된 비디오를 그림 모드에서 제거하여 화면의 이전 상태를 복원할 것을 요청합니다.

MDN 참조

function exitPictureInPicture(): Promise<void>

반품

Promise<void>

exitPointerLock()

문서 인터페이스의 메서드는 exitPointerLock() Element.requestPointerLock을 통해 이전에 요청한 포인터 잠금을 비동기적으로 해제합니다.

MDN 참조

function exitPointerLock()

getElementById(string)

ID가 elementId인 노드의 하위 항목 내의 첫 번째 요소를 반환합니다.

MDN 참조

function getElementById(elementId: string): HTMLElement | null

매개 변수

elementId

string

반품

HTMLElement | null

getElementsByClassName(string)

getElementsByClassName 지정된 클래스 이름을 모두 포함하는 모든 자식 요소의 메서드입니다.

MDN 참조

function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>

매개 변수

classNames

string

반품

HTMLCollectionOf<Element>

getElementsByName(string)

Document 개체의 메서드는 getElementsByName() 문서에서 지정된 name 특성이 있는 요소의 NodeList 컬렉션을 반환합니다.

MDN 참조

function getElementsByName(elementName: string): NodeListOf<HTMLElement>

매개 변수

elementName

string

반품

NodeListOf<HTMLElement>

getElementsByTagName(string)

function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>

매개 변수

qualifiedName

string

반품

HTMLCollectionOf<Element>

getElementsByTagName<K>(K)

getElementsByTagName 루트 노드를 포함하여 전체 문서의 메서드를 검색합니다.

MDN 참조

function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>

매개 변수

qualifiedName

K

반품

HTMLCollectionOf<HTMLElementTagNameMap[K]>

getElementsByTagName<K>(K)

function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>

매개 변수

qualifiedName

K

반품

HTMLCollectionOf<SVGElementTagNameMap[K]>

getElementsByTagName<K>(K)

function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>

매개 변수

qualifiedName

K

반품

HTMLCollectionOf<MathMLElementTagNameMap[K]>

getElementsByTagName<K>(K)

경고

이 API는 이제 사용되지 않습니다.

function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

매개 변수

qualifiedName

K

반품

HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)

function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>

매개 변수

namespaceURI

"http://www.w3.org/1998/Math/MathML"

localName

string

반품

HTMLCollectionOf<MathMLElement>

getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)

지정된 네임스페이스에 속하는 지정된 태그 이름의 요소 목록을 반환합니다.

MDN 참조

function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>

매개 변수

namespaceURI

"http://www.w3.org/1999/xhtml"

localName

string

반품

HTMLCollectionOf<HTMLElement>

getElementsByTagNameNS("http://www.w3.org/2000/svg", string)

function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>

매개 변수

namespaceURI

"http://www.w3.org/2000/svg"

localName

string

반품

HTMLCollectionOf<SVGElement>

getElementsByTagNameNS(string | null, string)

function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>

매개 변수

namespace

string | null

localName

string

반품

HTMLCollectionOf<Element>

getSelection()

Document 인터페이스의 메서드는 getSelection() 사용자가 선택한 텍스트 범위 또는 캐럿의 현재 위치를 나타내는 이 문서와 연결된 Selection 개체를 반환합니다.

MDN 참조

function getSelection(): Selection | null

반품

Selection | null

hasFocus()

문서 인터페이스의 메서드는 hasFocus() 문서 또는 문서 내의 요소에 포커스가 있는지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

function hasFocus(): boolean

반품

boolean

hasStorageAccess()

문서 인터페이스의 메서드는 hasStorageAccess() 문서에 분할되지 않은 타사 쿠키에 대한 액세스 권한이 있는지 여부를 나타내는 부울 값으로 확인되는 Promise를 반환합니다.

MDN 참조

function hasStorageAccess(): Promise<boolean>

반품

Promise<boolean>

importNode<T>(T, boolean | ImportNodeOptions)

Document 개체의 importNode() 메서드는 나중에 현재 문서에 삽입된 복사본을 만듭니다.

MDN 참조

function importNode<T>(node: T, options?: boolean | ImportNodeOptions): T

매개 변수

node

T

options

boolean | ImportNodeOptions

반품

T

open(string | URL, string, string)

function open(url: string | URL, name: string, features: string): Window | null

매개 변수

url

string | URL

name

string

features

string

반품

Window | null

open(string, string)

이 메서드는 Document.open() 몇 가지 부작용이 있는 문서를 엽니다.

MDN 참조

function open(unused1?: string, unused2?: string): Document

매개 변수

unused1

string

unused2

string

반품

queryCommandEnabled(string)

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

이 메서드는 Document.queryCommandEnabled() 브라우저에서 지정된 편집기 명령을 사용할 수 있는지 여부를 보고합니다.

function queryCommandEnabled(commandId: string): boolean

매개 변수

commandId

string

반품

boolean

queryCommandIndeterm(string)

경고

이 API는 이제 사용되지 않습니다.

function queryCommandIndeterm(commandId: string): boolean

매개 변수

commandId

string

반품

boolean

queryCommandState(string)

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

이 메서드는 queryCommandState() 현재 선택 영역에 특정 Document.execCommand() 명령이 적용되었는지 알려줍니다.

function queryCommandState(commandId: string): boolean

매개 변수

commandId

string

반품

boolean

queryCommandSupported(string)

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

이 메서드는 Document.queryCommandSupported() 지정된 편집기 명령이 브라우저에서 지원되는지 여부를 보고합니다.

function queryCommandSupported(commandId: string): boolean

매개 변수

commandId

string

반품

boolean

queryCommandValue(string)

경고

이 API는 이제 사용되지 않습니다.

function queryCommandValue(commandId: string): string

매개 변수

commandId

string

반품

string

releaseEvents()

경고

이 API는 이제 사용되지 않습니다.

function releaseEvents()

removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)

function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)

매개 변수

type

string

listener

EventListenerOrEventListenerObject

options

boolean | EventListenerOptions

removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)

EventTarget 인터페이스의 메서드는 removeEventListener() 이전에 EventTarget.addEventListener()에 등록된 이벤트 수신기를 대상에서 제거합니다.

MDN 참조

function removeEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions)

매개 변수

type

K

listener

(this: Document, ev: DocumentEventMap[K]) => any

options

boolean | EventListenerOptions

requestStorageAccess()

requestStorageAccess() 문서 인터페이스의 메서드를 사용하면 타사 컨텍스트(즉, iframe에 포함됨)에 로드된 콘텐츠가 타사 쿠키 및 분할되지 않은 상태에 대한 액세스를 요청할 수 있습니다.

MDN 참조

function requestStorageAccess(): Promise<void>

반품

Promise<void>

startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)

문서 인터페이스의 메서드는 startViewTransition() 새 SPA(동일한 문서) 뷰 전환을 시작하고 이를 나타내는 ViewTransition 개체를 반환합니다.

MDN 참조

function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition

매개 변수

callbackOptions

ViewTransitionUpdateCallback | StartViewTransitionOptions

반품

ViewTransition

write(string[])

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

문서 인터페이스의 메서드는 write() 하나 이상의 TrustedHTML 또는 문자열 매개 변수의 텍스트를 document.open()에서 연 문서 스트림에 씁니다.

function write(text: string[])

매개 변수

text

string[]

writeln(string[])

문서 인터페이스의 메서드는 writeln() 하나 이상의 TrustedHTML 또는 문자열 매개 변수에 있는 텍스트를 document.open()에서 연 문서 스트림에 쓴 다음 줄 바꿈 문자를 씁니다.

MDN 참조

function writeln(text: string[])

매개 변수

text

string[]

상속된 메서드 세부 정보

append((string | Node)[])

노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 마지막 자식 뒤에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

MDN 참조

function append(nodes: (string | Node)[])

매개 변수

nodes

(string | Node)[]

ParentNode.append에서 상속된

appendChild<T>(T)

노드 인터페이스의 메서드는 appendChild() 지정된 부모 노드의 자식 목록 끝에 노드를 추가합니다.

MDN 참조

function appendChild<T>(node: T): T

매개 변수

node

T

반품

T

Node.appendChild에서 상속된

cloneNode(boolean)

노드 인터페이스의 메서드는 cloneNode() 이 메서드가 호출된 노드의 중복을 반환합니다.

MDN 참조

function cloneNode(subtree?: boolean): Node

매개 변수

subtree

boolean

반품

Node

Node.cloneNode에서 상속된

compareDocumentPosition(Node)

노드 인터페이스의 메서드는 compareDocumentPosition() 호출되는 노드를 기준으로 인수 노드의 위치를 보고합니다.

MDN 참조

function compareDocumentPosition(other: Node): number

매개 변수

other

Node

반품

number

Node.compareDocumentPosition에서 상속된

contains(Node | null)

노드 인터페이스의 메서드는 contains() 노드가 지정된 노드의 하위 항목인지, 노드 자체인지, 직접 자식 중 하나(Node.childNodes), 자식의 직접 자식 중 하나인지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

function contains(other: Node | null): boolean

매개 변수

other

Node | null

반품

boolean

Node.contains에서 상속된

createExpression(string, XPathNSResolver | null)

MDN 참조

function createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression

매개 변수

expression

string

resolver

XPathNSResolver | null

반품

XPathExpression

XPathEvaluatorBase.createExpression에서 상속된

createNSResolver(Node)

경고

이 API는 이제 사용되지 않습니다.

MDN Reference

function createNSResolver(nodeResolver: Node): Node

매개 변수

nodeResolver

Node

반품

Node

XPathEvaluatorBase.createNSResolver에서 상속된

dispatchEvent(Event)

EventTarget의 메서드는 dispatchEvent() 영향을 받는 이벤트 수신기를 적절한 순서로 호출하는 이벤트를 개체에(동기적으로) 보냅니다.

MDN 참조

function dispatchEvent(event: Event): boolean

매개 변수

event

Event

반품

boolean

Node.dispatchEvent에서 상속된

elementFromPoint(number, number)

function elementFromPoint(x: number, y: number): Element | null

매개 변수

x

number

y

number

반품

Element | null

DocumentOrShadowRoot.elementFromPoint에서 상속된

elementsFromPoint(number, number)

function elementsFromPoint(x: number, y: number): Element[]

매개 변수

x

number

y

number

반품

Element[]

DocumentOrShadowRoot.elementsFromPoint에서 상속된

evaluate(string, Node, XPathNSResolver | null, number, XPathResult | null)

MDN 참조

function evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult

매개 변수

expression

string

contextNode

Node

resolver

XPathNSResolver | null

type

number

result

XPathResult | null

반품

XPathResult

XPathEvaluatorBase.evaluate에서 상속된

getAnimations()

MDN 참조

function getAnimations(): Animation[]

반품

Animation[]

DocumentOrShadowRoot.getAnimations에서 상속된

getRootNode(GetRootNodeOptions)

Node 인터페이스의 메서드는 getRootNode() 컨텍스트 개체의 루트를 반환하며, 사용 가능한 경우 필요에 따라 섀도 루트를 포함합니다.

MDN 참조

function getRootNode(options?: GetRootNodeOptions): Node

매개 변수

options

GetRootNodeOptions

반품

Node

Node.getRootNode에서 상속된

hasChildNodes()

노드 인터페이스의 메서드는 hasChildNodes() 지정된 노드에 자식 노드가 있는지 여부를 나타내는 부울 값을 반환합니다.

MDN 참조

function hasChildNodes(): boolean

반품

boolean

Node.hasChildNodes에서 상속된

insertBefore<T>(T, Node | null)

노드 인터페이스의 메서드는 insertBefore() 지정된 부모 노드의 자식으로 참조 노드 앞에 노드를 삽입합니다.

MDN 참조

function insertBefore<T>(node: T, child: Node | null): T

매개 변수

node

T

child

Node | null

반품

T

Node.insertBefore에서 상속된

isDefaultNamespace(string | null)

노드 인터페이스의 메서드는 isDefaultNamespace() 네임스페이스 URI를 인수로 허용합니다.

MDN 참조

function isDefaultNamespace(namespace: string | null): boolean

매개 변수

namespace

string | null

반품

boolean

Node.isDefaultNamespace에서 상속된

isEqualNode(Node | null)

노드 인터페이스의 메서드는 isEqualNode() 두 노드가 같은지 여부를 테스트합니다.

MDN 참조

function isEqualNode(otherNode: Node | null): boolean

매개 변수

otherNode

Node | null

반품

boolean

Node.isEqualNode에서 상속된

isSameNode(Node | null)

isSameNode() 노드 인터페이스의 메서드는 strict 같음 연산자에 대한 === 레거시 별칭입니다.

MDN 참조

function isSameNode(otherNode: Node | null): boolean

매개 변수

otherNode

Node | null

반품

boolean

Node.isSameNode에서 상속된

lookupNamespaceURI(string | null)

노드 인터페이스의 메서드는 lookupNamespaceURI() 접두사를 매개 변수로 사용하고 지정된 노드에서 연결된 네임스페이스 URI를 반환합니다( null 있는 경우).

MDN 참조

function lookupNamespaceURI(prefix: string | null): string | null

매개 변수

prefix

string | null

반품

string | null

Node.lookupNamespaceURI에서 상속된

lookupPrefix(string | null)

노드 인터페이스의 메서드는 lookupPrefix() 지정된 네임스페이스 URI에 대한 접두사를 포함하는 문자열을 반환합니다 null (있는 경우).

MDN 참조

function lookupPrefix(namespace: string | null): string | null

매개 변수

namespace

string | null

반품

string | null

Node.lookupPrefix에서 상속된

normalize()

노드 인터페이스의 메서드는 normalize() 지정된 노드와 모든 하위 트리를 정규화된 형식으로 만듭니다.

MDN 참조

function normalize()

Node.normalize에서 상속된

prepend((string | Node)[])

노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 첫 번째 자식 앞에 노드를 삽입합니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

MDN 참조

function prepend(nodes: (string | Node)[])

매개 변수

nodes

(string | Node)[]

ParentNode.prepend에서 상속된

querySelector<E>(string)

function querySelector<E>(selectors: string): E | null

매개 변수

selectors

string

반품

E | null

ParentNode.querySelector에서 상속된

querySelector<K>(K)

선택기와 일치하는 노드의 하위 요소인 첫 번째 요소를 반환합니다.

MDN 참조

function querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null

매개 변수

selectors

K

반품

HTMLElementTagNameMap[K] | null

ParentNode.querySelector에서 상속된

querySelector<K>(K)

function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null

매개 변수

selectors

K

반품

SVGElementTagNameMap[K] | null

ParentNode.querySelector에서 상속된

querySelector<K>(K)

function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null

매개 변수

selectors

K

반품

MathMLElementTagNameMap[K] | null

ParentNode.querySelector에서 상속된

querySelector<K>(K)

경고

이 API는 이제 사용되지 않습니다.

function querySelector<K>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null

매개 변수

selectors

K

반품

HTMLElementDeprecatedTagNameMap[K] | null

ParentNode.querySelector에서 상속된

querySelectorAll<E>(string)

function querySelectorAll<E>(selectors: string): NodeListOf<E>

매개 변수

selectors

string

반품

NodeListOf<E>

ParentNode.querySelectorAll에서 상속된

querySelectorAll<K>(K)

선택기와 일치하는 노드의 모든 요소 하위 항목을 반환합니다.

MDN 참조

function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>

매개 변수

selectors

K

반품

NodeListOf<HTMLElementTagNameMap[K]>

ParentNode.querySelectorAll에서 상속된

querySelectorAll<K>(K)

function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>

매개 변수

selectors

K

반품

NodeListOf<SVGElementTagNameMap[K]>

ParentNode.querySelectorAll에서 상속된

querySelectorAll<K>(K)

function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>

매개 변수

selectors

K

반품

NodeListOf<MathMLElementTagNameMap[K]>

ParentNode.querySelectorAll에서 상속된

querySelectorAll<K>(K)

경고

이 API는 이제 사용되지 않습니다.

function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

매개 변수

selectors

K

반품

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

ParentNode.querySelectorAll에서 상속된

removeChild<T>(T)

노드 인터페이스의 메서드는 removeChild() DOM에서 자식 노드를 제거하고 제거된 노드를 반환합니다.

MDN 참조

function removeChild<T>(child: T): T

매개 변수

child

T

반품

T

Node.removeChild에서 상속된

replaceChild<T>(Node, T)

노드 인터페이스의 메서드는 replaceChild() 지정된(부모) 노드 내의 자식 노드를 대체합니다.

MDN 참조

function replaceChild<T>(node: Node, child: T): T

매개 변수

node

Node

child

T

반품

T

Node.replaceChild에서 상속된

replaceChildren((string | Node)[])

노드의 모든 자식을 노드로 바꾸고 노드의 문자열을 해당하는 텍스트 노드로 바꿉니다.

노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.

MDN 참조

function replaceChildren(nodes: (string | Node)[])

매개 변수

nodes

(string | Node)[]

ParentNode.replaceChildren에서 상속된