Document interface
인터페이스는 Document 브라우저에 로드된 모든 웹 페이지를 나타내며 DOM 트리인 웹 페이지의 콘텐츠에 대한 진입점 역할을 합니다.
- Extends
-
Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase
속성
| alink |
문서 본문에서 활성 링크의 색을 반환하거나 설정합니다. |
| all | 문서 인터페이스의 읽기 전용 |
| anchors |
|
| applets | Document의 속성은 |
| bg |
사용되지 않는 속성은 |
| body | 속성은 |
| character |
읽기 전용 속성은 |
| charset | |
| compat |
읽기 전용 속성은 |
| content |
읽기 전용 속성은 |
| cookie | Document 속성을 |
| current |
이 속성은 |
| default |
브라우저에서 이 속성이 읽기 전용임을 반환합니다 |
| design |
|
| dir | 이 |
| doctype |
|
| document |
문서 인터페이스의 읽기 전용 속성은 |
| documentURI |
|
| domain | 문서 인터페이스의 속성은 |
| embeds |
|
| fg |
|
| forms | 문서 인터페이스의 읽기 전용 속성은 |
| fragment |
문서 인터페이스의 읽기 전용 속성은 |
| fullscreen | 사용되지 않는 문서 인터페이스의 |
| fullscreen |
문서 인터페이스의 읽기 전용 |
| head | 문서 인터페이스의 읽기 전용 속성은 |
| hidden | 읽기 전용 속성은 |
| images | Document 인터페이스의 읽기 전용 속성은 |
| implementation | 이 속성은 |
| input |
|
| last |
Document 인터페이스의 속성은 |
| link |
이 속성은 |
| links | Document 인터페이스의 읽기 전용 속성은 |
| location | 읽기 전용 속성은 |
| moz |
|
| ms |
|
| onfullscreenchange | |
| onfullscreenerror | |
| onpointerlockchange | |
| onpointerlockerror | |
| onreadystatechange | |
| onvisibilitychange | |
| owner |
노드 인터페이스의 읽기 전용 |
| picture |
사용 가능한 읽기 전용 |
| plugins |
|
| ready |
이 속성은 |
| referrer | 이 속성은 |
| root |
|
| scripts | 문서 인터페이스의 속성은 |
| scrolling |
|
| text |
|
| timeline | 문서 인터페이스의 readonly 속성은 |
| title | 이 속성은 |
| URL | 문서 인터페이스의 읽기 전용 속성은 |
| visibility |
읽기 전용 속성은 |
| vlink |
이 속성은 |
| webkit |
상속된 속성
| active |
키 이벤트를 라우팅할 문서 내의 가장 깊은 요소를 반환합니다. 이것은 대체로 문서의 포커스가 있는 요소입니다. 이 API의 목적을 위해 자식 검색 컨텍스트에 초점을 맞춘 경우 해당 컨테이너는 부모 검색 컨텍스트에 초점을 맞춥니다. 예를 들어 사용자가 iframe의 텍스트 컨트롤로 포커스를 이동하는 경우 iframe은 iframe의 노드 문서에서 activeElement API에서 반환하는 요소입니다. 마찬가지로, 포커스가 있는 요소가 documentOrShadowRoot와 다른 노드 트리에 있는 경우 documentOrShadowRoot가 포커스된 요소의 섀도 포함 포괄 상위 항목인 경우 documentOrShadowRoot와 동일한 노드 트리에 있는 호스트가 반환되고, 그렇지 않으면 null이 됩니다. |
| adopted |
|
| ATTRIBUTE_NODE | |
| baseURI | 노드 인터페이스의 읽기 전용 |
| CDATA_SECTION_NODE | 노드는 CDATASection 노드입니다. |
| child |
|
| child |
노드 인터페이스의 읽기 전용 |
| children | 자식 요소를 반환합니다. |
| 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 | |
| first |
노드 인터페이스의 읽기 전용 |
| first |
요소인 첫 번째 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다. |
| fonts | |
| fullscreen |
문서의 전체 화면 요소를 반환합니다. |
| is |
노드 인터페이스의 읽기 전용 |
| last |
노드 인터페이스의 읽기 전용 |
| last |
요소인 마지막 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다. |
| next |
노드 인터페이스의 읽기 전용 |
| node |
노드의 읽기 전용 |
| node |
노드 인터페이스의 읽기 전용 |
| node |
노드 인터페이스의 속성은 |
| NOTATION_NODE | |
| onabort | |
| onanimationcancel | |
| onanimationend | |
| onanimationiteration | |
| onanimationstart | |
| onauxclick | |
| onbeforeinput | |
| onbeforematch | |
| onbeforetoggle | |
| onblur | |
| oncancel | |
| oncanplay | |
| oncanplaythrough | |
| onchange | |
| onclick | |
| onclose | |
| oncontextlost | |
| oncontextmenu | |
| oncontextrestored | |
| oncopy | |
| oncuechange | |
| oncut | |
| ondblclick | |
| ondrag | |
| ondragend | |
| ondragenter | |
| ondragleave | |
| ondragover | |
| ondragstart | |
| ondrop | |
| ondurationchange | |
| onemptied | |
| onended | |
| onerror | |
| onfocus | |
| onformdata | |
| ongotpointercapture | |
| oninput | |
| oninvalid | |
| onkeydown | |
| onkeypress | |
| onkeyup | |
| onload | |
| onloadeddata | |
| onloadedmetadata | |
| onloadstart | |
| onlostpointercapture | |
| onmousedown | |
| onmouseenter | |
| onmouseleave | |
| onmousemove | |
| onmouseout | |
| onmouseover | |
| onmouseup | |
| onpaste | |
| onpause | |
| onplay | |
| onplaying | |
| onpointercancel | |
| onpointerdown | |
| onpointerenter | |
| onpointerleave | |
| onpointermove | |
| onpointerout | |
| onpointerover | |
| onpointerrawupdate | 보안 컨텍스트에서만 사용할 수 있습니다. |
| onpointerup | |
| onprogress | |
| onratechange | |
| onreset | |
| onresize | |
| onscroll | |
| onscrollend | |
| onsecuritypolicyviolation | |
| onseeked | |
| onseeking | |
| onselect | |
| onselectionchange | |
| onselectstart | |
| onslotchange | |
| onstalled | |
| onsubmit | |
| onsuspend | |
| ontimeupdate | |
| ontoggle | |
| ontouchcancel | |
| ontouchend | |
| ontouchmove | |
| ontouchstart | |
| ontransitioncancel | |
| ontransitionend | |
| ontransitionrun | |
| ontransitionstart | |
| onvolumechange | |
| onwaiting | |
| onwebkitanimationend | |
| onwebkitanimationiteration | |
| onwebkitanimationstart | |
| onwebkittransitionend | |
| onwheel | |
| parent |
노드 인터페이스의 읽기 전용 |
| parent |
노드 인터페이스의 읽기 전용 |
| picture |
|
| pointer |
|
| previous |
노드 인터페이스의 읽기 전용 |
| PROCESSING_INSTRUCTION_NODE | node는 ProcessingInstruction 노드입니다. |
| style |
|
| TEXT_NODE | 노드는 텍스트 노드입니다. |
메서드
상속된 메서드
| append((string | Node)[]) | 노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 마지막 자식 뒤에 노드를 삽입합니다. 노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다. |
| append |
노드 인터페이스의 메서드는 |
| clone |
노드 인터페이스의 메서드는 |
| compare |
노드 인터페이스의 메서드는 |
| contains(Node | null) | 노드 인터페이스의 메서드는 |
| create |
|
| create |
|
| dispatch |
EventTarget의 메서드는 |
| element |
|
| elements |
|
| evaluate(string, Node, XPath |
|
| get |
|
| get |
Node 인터페이스의 메서드는 |
| has |
노드 인터페이스의 메서드는 |
| insert |
노드 인터페이스의 메서드는 |
| is |
노드 인터페이스의 메서드는 |
| is |
노드 인터페이스의 메서드는 |
| is |
|
| lookup |
노드 인터페이스의 메서드는 |
| lookup |
노드 인터페이스의 메서드는 |
| normalize() | 노드 인터페이스의 메서드는 |
| prepend((string | Node)[]) | 노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 첫 번째 자식 앞에 노드를 삽입합니다. 노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다. |
| query |
|
| query |
선택기와 일치하는 노드의 하위 요소인 첫 번째 요소를 반환합니다. |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
선택기와 일치하는 노드의 모든 요소 하위 항목을 반환합니다. |
| query |
|
| query |
|
| query |
|
| remove |
노드 인터페이스의 메서드는 |
| replace |
노드 인터페이스의 메서드는 |
| replace |
노드의 모든 자식을 노드로 바꾸고 노드의 문자열을 해당하는 텍스트 노드로 바꿉니다. 노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다. |
속성 세부 정보
alinkColor
all
문서 인터페이스의 읽기 전용 all 속성은 문서 노드에 루팅된 HTMLAllCollection을 반환합니다.
all: HTMLAllCollection
속성 값
HTMLAllCollection
anchors
anchors HTMLCollection의 읽기 전용 속성입니다.
anchors: HTMLCollectionOf<HTMLAnchorElement>
속성 값
HTMLCollectionOf<HTMLAnchorElement>
applets
Document의 속성은 applets 빈 HTMLCollection을 반환합니다.
applets: HTMLCollection
속성 값
HTMLCollection
bgColor
사용되지 않는 속성은 bgColor 현재 문서의 배경색을 가져오거나 설정합니다.
bgColor: string
속성 값
string
body
characterSet
charset
charset: string
속성 값
string
compatMode
읽기 전용 속성은 Document.compatMode 문서가 Quirks 모드 또는 표준 모드로 렌더링되는지 여부를 나타냅니다.
compatMode: string
속성 값
string
contentType
cookie
currentScript
이 속성은 Document.currentScript 스크립트가 현재 처리되고 있으며 JavaScript 모듈이 아닌 스크립트 요소를 반환합니다.
currentScript: HTMLOrSVGScriptElement | null
속성 값
HTMLOrSVGScriptElement | null
defaultView
designMode
dir
이 Document.dir 속성은 왼쪽에서 오른쪽(기본값) 또는 오른쪽에서 왼쪽으로 문서 텍스트의 방향을 나타내는 문자열입니다.
dir: string
속성 값
string
doctype
doctype Document 인터페이스의 읽기 전용 속성은 현재 문서와 연결된 Doctype을 나타내는 DocumentType 개체입니다.
doctype: DocumentType | null
속성 값
DocumentType | null
documentElement
문서 인터페이스의 읽기 전용 속성은 documentElement HTML 문서의 html 요소인 예제를 반환합니다.)
documentElement: HTMLElement
속성 값
HTMLElement
documentURI
domain
문서 인터페이스의 속성은 domain 동일한 원본 정책에서 사용하는 현재 문서의 원본 도메인 부분을 가져오거나 설정합니다.
domain: string
속성 값
string
embeds
embeds HTMLCollection의 읽기 전용 속성입니다.
embeds: HTMLCollectionOf<HTMLEmbedElement>
속성 값
HTMLCollectionOf<HTMLEmbedElement>
fgColor
fgColor 현재 문서의 전경색 또는 텍스트 색을 가져오거나 설정합니다.
fgColor: string
속성 값
string
forms
문서 인터페이스의 읽기 전용 속성은 forms 문서에 포함된 모든 양식 요소를 나열하는 HTMLCollection을 반환합니다.
forms: HTMLCollectionOf<HTMLFormElement>
속성 값
HTMLCollectionOf<HTMLFormElement>
fragmentDirective
문서 인터페이스의 읽기 전용 속성은 fragmentDirective 현재 문서에 대한 FragmentDirective를 반환합니다.
fragmentDirective: FragmentDirective
속성 값
FragmentDirective
fullscreen
사용되지 않는 문서 인터페이스의 fullscreen 읽기 전용 속성은 문서가 현재 전체 화면 모드로 콘텐츠를 표시하고 있는지 여부를 보고합니다.
fullscreen: boolean
속성 값
boolean
fullscreenEnabled
문서 인터페이스의 읽기 전용 fullscreenEnabled 속성은 전체 화면 모드를 사용할 수 있는지 여부를 나타냅니다.
fullscreenEnabled: boolean
속성 값
boolean
head
hidden
읽기 전용 속성은 Document.hidden 페이지가 숨겨진 것으로 간주되는지 여부를 나타내는 부울 값을 반환합니다.
hidden: boolean
속성 값
boolean
images
Document 인터페이스의 읽기 전용 속성은 images 현재 HTML 문서에 있는 이미지 컬렉션을 반환합니다.
images: HTMLCollectionOf<HTMLImageElement>
속성 값
HTMLCollectionOf<HTMLImageElement>
implementation
이 속성은 Document.implementation A DOMImplementation 개체를 반환합니다.
implementation: DOMImplementation
속성 값
DOMImplementation
inputEncoding
inputEncoding: string
속성 값
string
lastModified
Document 인터페이스의 속성은 lastModified 현재 문서가 마지막으로 수정된 날짜 및 현지 시간을 포함하는 문자열을 반환합니다.
lastModified: string
속성 값
string
linkColor
이 속성은 Document.linkColor 문서 내의 링크 색을 가져오거나 설정합니다.
linkColor: string
속성 값
string
links
Document 인터페이스의 읽기 전용 속성은 links 모든 영역 요소의 컬렉션과 href 특성 값이 있는 문서의 요소를 반환합니다.
links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
속성 값
HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
location
읽기 전용 속성은 Document.location 해당 URL을 변경하고 다른 URL을 로드하기 위한 메서드를 반환하고 제공합니다.
Location location
속성 값
Location
mozCancelFullScreen
mozCancelFullScreen: any
속성 값
any
msExitFullscreen
msExitFullscreen: any
속성 값
any
onfullscreenchange
onfullscreenchange: (this: Document, ev: Event) => any | null
속성 값
(this: Document, ev: Event) => any | null
onfullscreenerror
onfullscreenerror: (this: Document, ev: Event) => any | null
속성 값
(this: Document, ev: Event) => any | null
onpointerlockchange
onpointerlockchange: (this: Document, ev: Event) => any | null
속성 값
(this: Document, ev: Event) => any | null
onpointerlockerror
onpointerlockerror: (this: Document, ev: Event) => any | null
속성 값
(this: Document, ev: Event) => any | null
onreadystatechange
onreadystatechange: (this: Document, ev: Event) => any | null
속성 값
(this: Document, ev: Event) => any | null
onvisibilitychange
onvisibilitychange: (this: Document, ev: Event) => any | null
속성 값
(this: Document, ev: Event) => any | null
ownerDocument
pictureInPictureEnabled
plugins
plugins HTMLCollection을 나타내는 하나 이상의 HTMLEmbedElements가 포함된 읽기 전용 속성입니다.
plugins: HTMLCollectionOf<HTMLEmbedElement>
속성 값
HTMLCollectionOf<HTMLEmbedElement>
readyState
이 속성은 Document.readyState 문서의 로드 상태를 설명합니다.
readyState: DocumentReadyState
속성 값
DocumentReadyState
referrer
rootElement
Document.rootElement 는 문서인 경우 문서의 루트 요소인 요소를 반환합니다.
rootElement: SVGSVGElement | null
속성 값
SVGSVGElement | null
scripts
문서 인터페이스의 속성은 scripts 문서의 스크립트 요소 목록을 반환합니다.
scripts: HTMLCollectionOf<HTMLScriptElement>
속성 값
HTMLCollectionOf<HTMLScriptElement>
scrollingElement
textContent
timeline
문서 인터페이스의 readonly 속성은 timeline 현재 문서의 기본 타임라인을 나타냅니다.
timeline: DocumentTimeline
속성 값
DocumentTimeline
title
URL
visibilityState
읽기 전용 속성은 Document.visibilityState 문서의 표시 유형을 반환합니다.
visibilityState: DocumentVisibilityState
속성 값
DocumentVisibilityState
vlinkColor
이 속성은 Document.vlinkColor 사용자가 문서에서 방문한 링크의 색을 가져오거나 설정합니다.
vlinkColor: string
속성 값
string
webkitExitFullscreen
webkitExitFullscreen: void
속성 값
void
상속된 속성 세부 정보
activeElement
키 이벤트를 라우팅할 문서 내의 가장 깊은 요소를 반환합니다. 이것은 대체로 문서의 포커스가 있는 요소입니다.
이 API의 목적을 위해 자식 검색 컨텍스트에 초점을 맞춘 경우 해당 컨테이너는 부모 검색 컨텍스트에 초점을 맞춥니다. 예를 들어 사용자가 iframe의 텍스트 컨트롤로 포커스를 이동하는 경우 iframe은 iframe의 노드 문서에서 activeElement API에서 반환하는 요소입니다.
마찬가지로, 포커스가 있는 요소가 documentOrShadowRoot와 다른 노드 트리에 있는 경우 documentOrShadowRoot가 포커스된 요소의 섀도 포함 포괄 상위 항목인 경우 documentOrShadowRoot와 동일한 노드 트리에 있는 호스트가 반환되고, 그렇지 않으면 null이 됩니다.
activeElement: Element | null
속성 값
Element | null
DocumentOrShadowRoot.activeElement에서 상속된
adoptedStyleSheets
adoptedStyleSheets: CSSStyleSheet[]
속성 값
CSSStyleSheet[]
DocumentOrShadowRoot.adoptedStyleSheets에서 상속된
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
속성 값
2
Node.ATTRIBUTE_NODE 상속된
baseURI
노드 인터페이스의 읽기 전용 baseURI 속성은 노드를 포함하는 문서의 절대 기본 URL을 반환합니다.
baseURI: string
속성 값
string
Node.baseURI에서 상속된
CDATA_SECTION_NODE
노드는 CDATASection 노드입니다.
CDATA_SECTION_NODE: 4
속성 값
4
Node.CDATA_SECTION_NODE 상속된
childElementCount
childNodes
노드 인터페이스의 읽기 전용 childNodes 속성은 첫 번째 자식 노드에 인덱 0스가 할당된 라이브를 반환합니다.
childNodes: NodeListOf<ChildNode>
속성 값
NodeListOf<ChildNode>
Node.childNodes에서 상속된
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 노드에 자식이 없는 경우 반환합니다.
firstChild: ChildNode | null
속성 값
ChildNode | null
Node.firstChild에서 상속된
firstElementChild
요소인 첫 번째 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다.
firstElementChild: Element | null
속성 값
Element | null
ParentNode.firstElementChild에서 상속된
fonts
fullscreenElement
문서의 전체 화면 요소를 반환합니다.
fullscreenElement: Element | null
속성 값
Element | null
DocumentOrShadowRoot.fullscreenElement에서 상속된
isConnected
노드 인터페이스의 읽기 전용 isConnected 속성은 노드가 Document 개체에 직접 또는 간접적으로 연결되어 있는지 여부를 나타내는 부울을 반환합니다.
isConnected: boolean
속성 값
boolean
Node.isConnected에서 상속된
lastChild
노드 인터페이스의 읽기 전용 lastChild 속성은 노드의 마지막 자식 또는 null 자식 노드가 없는 경우 반환합니다.
lastChild: ChildNode | null
속성 값
ChildNode | null
Node.lastChild에서 상속된
lastElementChild
요소인 마지막 자식 값을 반환하고, 그렇지 않으면 null을 반환합니다.
lastElementChild: Element | null
속성 값
Element | null
ParentNode.lastElementChild에서 상속된
nextSibling
노드 인터페이스의 읽기 전용 nextSibling 속성은 부모 Node.childNodes에서 지정된 노드 바로 뒤에 노드를 반환하거나 지정된 노드가 부모 요소의 마지막 자식인 경우 반환 null 합니다.
nextSibling: ChildNode | null
속성 값
ChildNode | null
Node.nextSibling에서 상속된
nodeName
노드의 읽기 전용 nodeName 속성은 현재 노드의 이름을 문자열로 반환합니다.
nodeName: string
속성 값
string
Node.nodeName에서 상속된
nodeType
노드 인터페이스의 읽기 전용 nodeType 속성은 노드가 무엇인지 식별하는 정수입니다.
nodeType: number
속성 값
number
Node.nodeType에서 상속된
nodeValue
노드 인터페이스의 속성은 nodeValue 현재 노드의 값을 반환하거나 설정합니다.
nodeValue: string | null
속성 값
string | null
Node.nodeValue에서 상속된
NOTATION_NODE
NOTATION_NODE: 12
속성 값
12
Node.NOTATION_NODE 상속된
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: UIEvent) => any | null
GlobalEventHandlers.onabort에서 상속된
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
GlobalEventHandlers.onanimationcancel에서 상속된
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
GlobalEventHandlers.onanimationend에서 상속된
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
GlobalEventHandlers.onanimationiteration에서 상속된
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
GlobalEventHandlers.onanimationstart에서 상속된
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onauxclick에서 상속된
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: InputEvent) => any | null
GlobalEventHandlers.onbeforeinput에서 상속된
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
상속된 개체 GlobalEventHandlers.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
상속된 개체 GlobalEventHandlers.onbeforetoggle
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
GlobalEventHandlers.onblur에서 상속된
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.oncancel에서 상속된
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.oncanplay에서 상속된
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.oncanplaythrough에서 상속된
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onchange에서 상속된
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onclick에서 상속된
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onclose에서 상속된
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
상속된 개체 GlobalEventHandlers.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.oncontextmenu에서 상속된
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
상속된 개체 GlobalEventHandlers.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
상속된 개체 GlobalEventHandlers.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.oncuechange에서 상속된
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
상속된 개체 GlobalEventHandlers.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.ondblclick에서 상속된
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: DragEvent) => any | null
GlobalEventHandlers.ondrag에서 상속된
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: DragEvent) => any | null
GlobalEventHandlers.ondragend에서 상속된
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: DragEvent) => any | null
GlobalEventHandlers.ondragenter에서 상속된
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: DragEvent) => any | null
GlobalEventHandlers.ondragleave에서 상속된
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: DragEvent) => any | null
GlobalEventHandlers.ondragover에서 상속된
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: DragEvent) => any | null
GlobalEventHandlers.ondragstart에서 상속된
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: DragEvent) => any | null
GlobalEventHandlers.ondrop에서 상속된
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.ondurationchange에서 상속된
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onemptied에서 상속된
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onended에서 상속된
onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
GlobalEventHandlers.onfocus에서 상속된
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
GlobalEventHandlers.onformdata에서 상속된
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.ongotpointercapture에서 상속된
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.oninput에서 상속된
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.oninvalid에서 상속된
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
GlobalEventHandlers.onkeydown에서 상속된
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
GlobalEventHandlers.onkeypress에서 상속된
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
GlobalEventHandlers.onkeyup에서 상속된
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onload에서 상속된
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onloadeddata에서 상속된
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onloadedmetadata에서 상속된
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onloadstart에서 상속된
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onlostpointercapture에서 상속된
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.onmousedown에서 상속된
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.onmouseenter에서 상속된
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.onmouseleave에서 상속된
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.onmousemove에서 상속된
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.onmouseout에서 상속된
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.onmouseover에서 상속된
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
GlobalEventHandlers.onmouseup에서 상속된
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
상속된 개체 GlobalEventHandlers.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onpause에서 상속된
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onplay에서 상속된
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onplaying에서 상속된
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointercancel에서 상속된
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointerdown에서 상속된
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointerenter에서 상속된
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointerleave에서 상속된
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointermove에서 상속된
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointerout에서 상속된
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointerover에서 상속된
onpointerrawupdate
보안 컨텍스트에서만 사용할 수 있습니다.
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
상속된 개체 GlobalEventHandlers.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
GlobalEventHandlers.onpointerup에서 상속된
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
GlobalEventHandlers.onprogress에서 상속된
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onratechange에서 상속된
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onreset에서 상속된
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: UIEvent) => any | null
GlobalEventHandlers.onresize에서 상속된
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onscroll에서 상속된
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
상속된 개체 GlobalEventHandlers.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
GlobalEventHandlers.onsecuritypolicyviolation에서 상속된
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onseeked에서 상속된
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onseeking에서 상속된
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onselect에서 상속된
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onselectionchange에서 상속된
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onselectstart에서 상속된
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onslotchange에서 상속된
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onstalled에서 상속된
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
GlobalEventHandlers.onsubmit에서 상속된
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onsuspend에서 상속된
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.ontimeupdate에서 상속된
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
GlobalEventHandlers.ontoggle에서 상속된
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
GlobalEventHandlers.ontouchcancel에서 상속된
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
GlobalEventHandlers.ontouchend에서 상속된
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
GlobalEventHandlers.ontouchmove에서 상속된
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
GlobalEventHandlers.ontouchstart에서 상속된
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
GlobalEventHandlers.ontransitioncancel에서 상속됨
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
GlobalEventHandlers.ontransitionend에서 상속됨
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
GlobalEventHandlers.ontransitionrun에서 상속된
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
GlobalEventHandlers.ontransitionstart에서 상속된
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onvolumechange에서 상속된
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onwaiting에서 상속된
onwebkitanimationend
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onwebkitanimationend에서 상속된
onwebkitanimationiteration
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onwebkitanimationiteration에서 상속됩니다.
onwebkitanimationstart
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onwebkitanimationstart에서 상속된
onwebkittransitionend
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
속성 값
(this: GlobalEventHandlers, ev: Event) => any | null
GlobalEventHandlers.onwebkittransitionend에서 상속된
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
속성 값
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
GlobalEventHandlers.onwheel에서 상속된
parentElement
노드 인터페이스의 읽기 전용 parentElement 속성은 DOM 노드의 부모 요소를 반환하거나 null 노드에 부모가 없거나 해당 부모가 DOM 요소가 아닌 경우 반환됩니다.
parentElement: HTMLElement | null
속성 값
HTMLElement | null
Node.parentElement에서 상속된
parentNode
노드 인터페이스의 읽기 전용 parentNode 속성은 DOM 트리에서 지정된 노드의 부모를 반환합니다.
parentNode: ParentNode | null
속성 값
ParentNode | null
Node.parentNode에서 상속된
pictureInPictureElement
pictureInPictureElement: Element | null
속성 값
Element | null
DocumentOrShadowRoot.pictureInPictureElement에서 상속된
pointerLockElement
pointerLockElement: Element | null
속성 값
Element | null
DocumentOrShadowRoot.pointerLockElement에서 상속된
previousSibling
노드 인터페이스의 읽기 전용 previousSibling 속성은 부모 노드에서 지정한 노드 바로 앞에 있는 노드를 반환하거나 null 지정된 노드가 해당 목록의 첫 번째 노드인 경우 반환합니다.
previousSibling: ChildNode | null
속성 값
ChildNode | null
Node.previousSibling에서 상속된
PROCESSING_INSTRUCTION_NODE
node는 ProcessingInstruction 노드입니다.
PROCESSING_INSTRUCTION_NODE: 7
속성 값
7
Node.PROCESSING_INSTRUCTION_NODE 상속된
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() 지정된 이벤트가 대상에 배달될 때마다 호출되는 함수를 설정합니다.
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을 전송합니다.
function adoptNode<T>(node: T): T
매개 변수
- node
-
T
반품
T
captureEvents()
경고
이 API는 이제 사용되지 않습니다.
function captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)
Document 인터페이스의 메서드는 caretPositionFromPoint() 해당 노드 내에서 caret 및 caret의 문자 오프셋과 함께 DOM 노드를 포함하는 CaretPosition 개체를 반환합니다.
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()
메서드는 Document.clear() 아무 작업도 수행하지 않지만 오류가 발생하지 않습니다.
function clear()
close()
createAttribute(string)
메서드는 Document.createAttribute() 새 특성 노드를 만들고 반환합니다.
function createAttribute(localName: string): Attr
매개 변수
- localName
-
string
반품
Attr
createAttributeNS(string | null, string)
메서드는 Document.createAttributeNS() 지정된 네임스페이스 URI 및 정규화된 이름을 사용하여 새 특성 노드를 만들고 반환합니다.
function createAttributeNS(namespace: string | null, qualifiedName: string): Attr
매개 변수
- namespace
-
string | null
- qualifiedName
-
string
반품
Attr
createCDATASection(string)
createCDATASection() 는 새 CDATA 섹션 노드를 만들고 반환합니다.
function createCDATASection(data: string): CDATASection
매개 변수
- data
-
string
반품
CDATASection
createComment(string)
createComment() 는 새 주석 노드를 만들고 반환합니다.
function createComment(data: string): Comment
매개 변수
- data
-
string
반품
Comment
createDocumentFragment()
DOM 노드를 추가하여 오프스크린 DOM 트리를 빌드할 수 있는 빈 DocumentFragment를 새로 만듭니다.
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를 만듭니다.
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 및 정규화된 이름을 사용하여 요소를 만듭니다.
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")
지정된 형식의 이벤트를 만듭니다.
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 개체를 반환합니다.
function createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator
매개 변수
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
반품
NodeIterator
createProcessingInstruction(string, string)
createProcessingInstruction() 는 새 처리 명령 노드를 생성하고 반환합니다.
function createProcessingInstruction(target: string, data: string): ProcessingInstruction
매개 변수
- target
-
string
- data
-
string
반품
ProcessingInstruction
createRange()
메서드는 Document.createRange() 새 js-nolint createRange() None을 반환합니다.
function createRange(): Range
반품
Range
createTextNode(string)
createTreeWalker(Node, number, NodeFilter | null)
작성자 메서드는 Document.createTreeWalker() 새로 만든 TreeWalker 개체를 반환합니다.
function createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker
매개 변수
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
반품
TreeWalker
execCommand(string, boolean, string)
이 메서드는 execCommand 여러 다른 명령을 구현합니다.
function execCommand(commandId: string, showUI?: boolean, value?: string): boolean
매개 변수
- commandId
-
string
- showUI
-
boolean
- value
-
string
반품
boolean
exitFullscreen()
Document 메서드 exitFullscreen() 는 현재 전체 화면 모드로 표시되는 이 문서의 요소를 전체 화면 모드에서 제거하여 화면의 이전 상태를 복원할 것을 요청합니다.
function exitFullscreen(): Promise<void>
반품
Promise<void>
exitPictureInPicture()
문서 인터페이스의 메서드는 exitPictureInPicture() 현재 부동 상태인 이 문서에 포함된 비디오를 그림 모드에서 제거하여 화면의 이전 상태를 복원할 것을 요청합니다.
function exitPictureInPicture(): Promise<void>
반품
Promise<void>
exitPointerLock()
문서 인터페이스의 메서드는 exitPointerLock() Element.requestPointerLock을 통해 이전에 요청한 포인터 잠금을 비동기적으로 해제합니다.
function exitPointerLock()
getElementById(string)
ID가 elementId인 노드의 하위 항목 내의 첫 번째 요소를 반환합니다.
function getElementById(elementId: string): HTMLElement | null
매개 변수
- elementId
-
string
반품
HTMLElement | null
getElementsByClassName(string)
getElementsByClassName 지정된 클래스 이름을 모두 포함하는 모든 자식 요소의 메서드입니다.
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
매개 변수
- classNames
-
string
반품
HTMLCollectionOf<Element>
getElementsByName(string)
Document 개체의 메서드는 getElementsByName() 문서에서 지정된 name 특성이 있는 요소의 NodeList 컬렉션을 반환합니다.
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 루트 노드를 포함하여 전체 문서의 메서드를 검색합니다.
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)
지정된 네임스페이스에 속하는 지정된 태그 이름의 요소 목록을 반환합니다.
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 개체를 반환합니다.
function getSelection(): Selection | null
반품
Selection | null
hasFocus()
문서 인터페이스의 메서드는 hasFocus() 문서 또는 문서 내의 요소에 포커스가 있는지 여부를 나타내는 부울 값을 반환합니다.
function hasFocus(): boolean
반품
boolean
hasStorageAccess()
문서 인터페이스의 메서드는 hasStorageAccess() 문서에 분할되지 않은 타사 쿠키에 대한 액세스 권한이 있는지 여부를 나타내는 부울 값으로 확인되는 Promise를 반환합니다.
function hasStorageAccess(): Promise<boolean>
반품
Promise<boolean>
importNode<T>(T, boolean | ImportNodeOptions)
Document 개체의 importNode() 메서드는 나중에 현재 문서에 삽입된 복사본을 만듭니다.
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)
queryCommandEnabled(string)
이 메서드는 Document.queryCommandEnabled() 브라우저에서 지정된 편집기 명령을 사용할 수 있는지 여부를 보고합니다.
function queryCommandEnabled(commandId: string): boolean
매개 변수
- commandId
-
string
반품
boolean
queryCommandIndeterm(string)
경고
이 API는 이제 사용되지 않습니다.
function queryCommandIndeterm(commandId: string): boolean
매개 변수
- commandId
-
string
반품
boolean
queryCommandState(string)
이 메서드는 queryCommandState() 현재 선택 영역에 특정 Document.execCommand() 명령이 적용되었는지 알려줍니다.
function queryCommandState(commandId: string): boolean
매개 변수
- commandId
-
string
반품
boolean
queryCommandSupported(string)
이 메서드는 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()에 등록된 이벤트 수신기를 대상에서 제거합니다.
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에 포함됨)에 로드된 콘텐츠가 타사 쿠키 및 분할되지 않은 상태에 대한 액세스를 요청할 수 있습니다.
function requestStorageAccess(): Promise<void>
반품
Promise<void>
startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)
문서 인터페이스의 메서드는 startViewTransition() 새 SPA(동일한 문서) 뷰 전환을 시작하고 이를 나타내는 ViewTransition 개체를 반환합니다.
function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition
매개 변수
- callbackOptions
-
ViewTransitionUpdateCallback | StartViewTransitionOptions
반품
ViewTransition
write(string[])
문서 인터페이스의 메서드는 write() 하나 이상의 TrustedHTML 또는 문자열 매개 변수의 텍스트를 document.open()에서 연 문서 스트림에 씁니다.
function write(text: string[])
매개 변수
- text
-
string[]
writeln(string[])
문서 인터페이스의 메서드는 writeln() 하나 이상의 TrustedHTML 또는 문자열 매개 변수에 있는 텍스트를 document.open()에서 연 문서 스트림에 쓴 다음 줄 바꿈 문자를 씁니다.
function writeln(text: string[])
매개 변수
- text
-
string[]
상속된 메서드 세부 정보
append((string | Node)[])
노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 마지막 자식 뒤에 노드를 삽입합니다.
노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.
function append(nodes: (string | Node)[])
매개 변수
- nodes
-
(string | Node)[]
ParentNode.append에서 상속된
appendChild<T>(T)
노드 인터페이스의 메서드는 appendChild() 지정된 부모 노드의 자식 목록 끝에 노드를 추가합니다.
function appendChild<T>(node: T): T
매개 변수
- node
-
T
반품
T
Node.appendChild에서 상속된
cloneNode(boolean)
노드 인터페이스의 메서드는 cloneNode() 이 메서드가 호출된 노드의 중복을 반환합니다.
function cloneNode(subtree?: boolean): Node
매개 변수
- subtree
-
boolean
반품
Node
Node.cloneNode에서 상속된
compareDocumentPosition(Node)
노드 인터페이스의 메서드는 compareDocumentPosition() 호출되는 노드를 기준으로 인수 노드의 위치를 보고합니다.
function compareDocumentPosition(other: Node): number
매개 변수
- other
-
Node
반품
number
Node.compareDocumentPosition에서 상속된
contains(Node | null)
노드 인터페이스의 메서드는 contains() 노드가 지정된 노드의 하위 항목인지, 노드 자체인지, 직접 자식 중 하나(Node.childNodes), 자식의 직접 자식 중 하나인지 여부를 나타내는 부울 값을 반환합니다.
function contains(other: Node | null): boolean
매개 변수
- other
-
Node | null
반품
boolean
Node.contains에서 상속된
createExpression(string, XPathNSResolver | null)
function createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression
매개 변수
- expression
-
string
- resolver
-
XPathNSResolver | null
반품
XPathExpression
XPathEvaluatorBase.createExpression에서 상속된
createNSResolver(Node)
function createNSResolver(nodeResolver: Node): Node
매개 변수
- nodeResolver
-
Node
반품
Node
XPathEvaluatorBase.createNSResolver에서 상속된
dispatchEvent(Event)
EventTarget의 메서드는 dispatchEvent() 영향을 받는 이벤트 수신기를 적절한 순서로 호출하는 이벤트를 개체에(동기적으로) 보냅니다.
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)
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()
function getAnimations(): Animation[]
반품
Animation[]
DocumentOrShadowRoot.getAnimations에서 상속된
getRootNode(GetRootNodeOptions)
Node 인터페이스의 메서드는 getRootNode() 컨텍스트 개체의 루트를 반환하며, 사용 가능한 경우 필요에 따라 섀도 루트를 포함합니다.
function getRootNode(options?: GetRootNodeOptions): Node
매개 변수
- options
-
GetRootNodeOptions
반품
Node
Node.getRootNode에서 상속된
hasChildNodes()
노드 인터페이스의 메서드는 hasChildNodes() 지정된 노드에 자식 노드가 있는지 여부를 나타내는 부울 값을 반환합니다.
function hasChildNodes(): boolean
반품
boolean
Node.hasChildNodes에서 상속된
insertBefore<T>(T, Node | null)
노드 인터페이스의 메서드는 insertBefore() 지정된 부모 노드의 자식으로 참조 노드 앞에 노드를 삽입합니다.
function insertBefore<T>(node: T, child: Node | null): T
매개 변수
- node
-
T
- child
-
Node | null
반품
T
Node.insertBefore에서 상속된
isDefaultNamespace(string | null)
노드 인터페이스의 메서드는 isDefaultNamespace() 네임스페이스 URI를 인수로 허용합니다.
function isDefaultNamespace(namespace: string | null): boolean
매개 변수
- namespace
-
string | null
반품
boolean
Node.isDefaultNamespace에서 상속된
isEqualNode(Node | null)
노드 인터페이스의 메서드는 isEqualNode() 두 노드가 같은지 여부를 테스트합니다.
function isEqualNode(otherNode: Node | null): boolean
매개 변수
- otherNode
-
Node | null
반품
boolean
Node.isEqualNode에서 상속된
isSameNode(Node | null)
isSameNode() 노드 인터페이스의 메서드는 strict 같음 연산자에 대한 === 레거시 별칭입니다.
function isSameNode(otherNode: Node | null): boolean
매개 변수
- otherNode
-
Node | null
반품
boolean
Node.isSameNode에서 상속된
lookupNamespaceURI(string | null)
노드 인터페이스의 메서드는 lookupNamespaceURI() 접두사를 매개 변수로 사용하고 지정된 노드에서 연결된 네임스페이스 URI를 반환합니다( null 있는 경우).
function lookupNamespaceURI(prefix: string | null): string | null
매개 변수
- prefix
-
string | null
반품
string | null
Node.lookupNamespaceURI에서 상속된
lookupPrefix(string | null)
노드 인터페이스의 메서드는 lookupPrefix() 지정된 네임스페이스 URI에 대한 접두사를 포함하는 문자열을 반환합니다 null (있는 경우).
function lookupPrefix(namespace: string | null): string | null
매개 변수
- namespace
-
string | null
반품
string | null
Node.lookupPrefix에서 상속된
normalize()
노드 인터페이스의 메서드는 normalize() 지정된 노드와 모든 하위 트리를 정규화된 형식으로 만듭니다.
function normalize()
Node.normalize에서 상속된
prepend((string | Node)[])
노드의 문자열을 해당하는 텍스트 노드로 대체하면서 노드의 첫 번째 자식 앞에 노드를 삽입합니다.
노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.
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)
선택기와 일치하는 노드의 하위 요소인 첫 번째 요소를 반환합니다.
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)
선택기와 일치하는 노드의 모든 요소 하위 항목을 반환합니다.
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에서 자식 노드를 제거하고 제거된 노드를 반환합니다.
function removeChild<T>(child: T): T
매개 변수
- child
-
T
반품
T
Node.removeChild에서 상속된
replaceChild<T>(Node, T)
노드 인터페이스의 메서드는 replaceChild() 지정된(부모) 노드 내의 자식 노드를 대체합니다.
function replaceChild<T>(node: Node, child: T): T
매개 변수
- node
-
Node
- child
-
T
반품
T
Node.replaceChild에서 상속된
replaceChildren((string | Node)[])
노드의 모든 자식을 노드로 바꾸고 노드의 문자열을 해당하는 텍스트 노드로 바꿉니다.
노드 트리의 제약 조건이 위반되면 "HierarchyRequestError" DOMException을 throw합니다.
function replaceChildren(nodes: (string | Node)[])
매개 변수
- nodes
-
(string | Node)[]
ParentNode.replaceChildren에서 상속된