Document interface
Document インターフェイスは、ブラウザーに読み込まれた Web ページを表し、Web ページのコンテンツ (DOM ツリー) へのエントリ ポイントとして機能します。
- Extends
-
Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase
プロパティ
| alink |
文書の本文でアクティブなリンクの色を設定または返します。 |
| all | Document インターフェイスの読み取り専用 |
| anchors |
|
| applets | ドキュメントの |
| bg |
非推奨の |
| body |
|
| character |
|
| charset | |
| compat |
|
| content |
|
| cookie | Document プロパティ |
| current |
|
| default |
ブラウザーでは、 |
| design |
|
| dir |
|
| doctype | Document インターフェイスの |
| document |
Document インターフェイスの |
| documentURI | A 文字列の |
| domain | Document インターフェイスの |
| embeds |
|
| fg |
|
| forms | ドキュメント インターフェイスの |
| fragment |
ドキュメント インターフェイスの |
| fullscreen | 古いドキュメント インターフェイスの |
| fullscreen |
Document インターフェイスの読み取り専用 |
| head | ドキュメント インターフェイスの |
| hidden |
|
| images | ドキュメント インターフェイスの |
| implementation |
|
| input |
|
| last |
Document インターフェイスの |
| link |
|
| links | Document インターフェイスの |
| location |
|
| moz |
|
| ms |
|
| onfullscreenchange | |
| onfullscreenerror | |
| onpointerlockchange | |
| onpointerlockerror | |
| onreadystatechange | |
| onvisibilitychange | |
| owner |
Node インターフェイスの読み取り専用 |
| picture |
使用可能な |
| plugins |
|
| ready |
|
| referrer |
|
| root |
|
| scripts | Document インターフェイスの |
| scrolling |
ドキュメント |
| text |
|
| timeline | Document インターフェイスの |
| title |
|
| URL | ドキュメント インターフェイスの |
| visibility |
|
| vlink |
|
| webkit |
継承されたプロパティ
| active |
キー イベントのルーティング先またはルーティング先となるドキュメント内の最も深い要素を返します。 これは、大まかに言えば、ドキュメント内のフォーカスされた要素です。 この API の目的上、子参照コンテキストにフォーカスがある場合、そのコンテナーは親参照コンテキストにフォーカスされます。 たとえば、ユーザーが iframe 内のテキスト コントロールにフォーカスを移動した場合、iframe は iframe のノード ドキュメント内の activeElement API によって返される要素です。 同様に、フォーカスされた要素が documentOrShadowRoot とは異なるノード ツリーにある場合、documentOrShadowRoot がフォーカスされた要素のシャドウを含む先祖である場合、返される要素は documentOrShadowRoot と同じノード ツリー内にあるホストになり、そうでない場合は null になります。 |
| adopted |
|
| ATTRIBUTE_NODE | |
| baseURI | Node インターフェイスの読み取り専用 |
| CDATA_SECTION_NODE | node は CDATASection ノードです。 |
| child |
|
| child |
Node インターフェイスの読み取り専用 |
| children | 子要素を返します。 |
| COMMENT_NODE | ノードはコメント ノードです。 |
| DOCUMENT_FRAGMENT_NODE | ノードは DocumentFragment ノードです。 |
| DOCUMENT_NODE | ノードはドキュメントです。 |
| DOCUMENT_POSITION_CONTAINED_BY | other がノードの子孫である場合に設定されます。 |
| DOCUMENT_POSITION_CONTAINS | other がノードの先祖である場合に設定します。 |
| 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 |
Node インターフェイスの読み取り専用 |
| first |
要素である最初の子を返し、それ以外の場合は null を返します。 |
| fonts | |
| fullscreen |
ドキュメントの全画面表示要素を返します。 |
| is |
Node インターフェイスの読み取り専用 |
| last |
Node インターフェイスの読み取り専用 |
| last |
要素である最後の子を返し、それ以外の場合は null を返します。 |
| next |
Node インターフェイスの読み取り専用 |
| node |
Node の読み取り専用 |
| node |
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 |
Node インターフェイスの読み取り専用 |
| parent |
Node インターフェイスの読み取り専用 |
| picture |
|
| pointer |
|
| previous |
Node インターフェイスの読み取り専用 |
| PROCESSING_INSTRUCTION_NODE | ノードは ProcessingInstruction ノードです。 |
| style |
|
| TEXT_NODE | ノードはテキスト ノードです。 |
メソッド
継承されたメソッド
| append((string | Node)[]) | ノードの最後の子の後にノードを挿入し、ノード内の文字列を同等のテキスト ノードに置き換えます。 ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。 |
| append |
Node インターフェイスの |
| clone |
Node インターフェイスの |
| compare |
Node インターフェイスの |
| contains(Node | null) | Node インターフェイスの |
| create |
|
| create |
|
| dispatch |
EventTarget の |
| element |
|
| elements |
|
| evaluate(string, Node, XPath |
|
| get |
|
| get |
Node インターフェイスの |
| has |
Node インターフェイスの |
| insert |
Node インターフェイスの |
| is |
Node インターフェイスの |
| is |
Node インターフェイスの |
| is |
Node インターフェイスの |
| lookup |
Node インターフェイスの |
| lookup |
Node インターフェイスの |
| normalize() | Node インターフェイスの |
| prepend((string | Node)[]) | ノード内の文字列を同等の Text ノードに置き換えながら、ノードの最初の子の前にノードを挿入します。 ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。 |
| query |
|
| query |
セレクターに一致するノードの子孫である最初の要素を返します。 |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
セレクターに一致するノードのすべての要素の子孫を返します。 |
| query |
|
| query |
|
| query |
|
| remove |
Node インターフェイスの |
| replace |
Node インターフェイスの |
| replace |
ノード内の文字列を同等のテキスト ノードに置き換えながら、ノードのすべての子をノードに置き換えます。 ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。 |
プロパティの詳細
alinkColor
all
Document インターフェイスの読み取り専用 all プロパティは、ドキュメント ノードにルート化された HTMLAllCollection を返します。
all: HTMLAllCollection
プロパティ値
HTMLAllCollection
anchors
anchorsの読み取り専用プロパティ、 A HTMLCollectionです。
anchors: HTMLCollectionOf<HTMLAnchorElement>
プロパティ値
HTMLCollectionOf<HTMLAnchorElement>
applets
ドキュメントの applets プロパティは、空の HTMLCollection を返します。
applets: HTMLCollection
プロパティ値
HTMLCollection
bgColor
非推奨の bgColor プロパティは、現在のドキュメントの背景色を取得または設定します。
bgColor: string
プロパティ値
string
body
characterSet
Document.characterSet読み取り専用プロパティは、現在レンダリングされているドキュメントの文字エンコーディングを返します。
characterSet: string
プロパティ値
string
charset
charset: string
プロパティ値
string
compatMode
Document.compatMode読み取り専用プロパティは、ドキュメントが「風変わり」モードまたは「標準」モードでレンダリングされるかどうかを示します。
compatMode: string
プロパティ値
string
contentType
Document.contentType読み取り専用プロパティは、ドキュメントがレンダリングされる MIME の種類を返します。
contentType: string
プロパティ値
string
cookie
Document プロパティ cookie を使用すると、ドキュメントに関連付けられている Cookie の読み取りと書き込みを行うことができます。
cookie: string
プロパティ値
string
currentScript
Document.currentScript プロパティは、スクリプトが現在処理されており、JavaScript モジュールではないスクリプト要素を返します。
currentScript: HTMLOrSVGScriptElement | null
プロパティ値
HTMLOrSVGScriptElement | null
defaultView
ブラウザーでは、 document.defaultView は This プロパティが読み取り専用であることを返します。
defaultView: (Window & typeof globalThis) | null
プロパティ値
(Window & typeof globalThis) | null
designMode
dir
doctype
Document インターフェイスの doctype 読み取り専用プロパティは、現在のドキュメントに関連付けられている Doctype を表す DocumentType オブジェクトです。
doctype: DocumentType | null
プロパティ値
DocumentType | null
documentElement
Document インターフェイスの documentElement 読み取り専用プロパティは、HTML ドキュメントの html 要素の例を返します)。
documentElement: HTMLElement
プロパティ値
HTMLElement
documentURI
domain
Document インターフェイスの domain プロパティは、同じ配信元ポリシーで使用される、現在のドキュメントの配信元のドメイン部分を取得または設定します。
domain: string
プロパティ値
string
embeds
embedsの読み取り専用プロパティ、 A 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
Document インターフェイスの読み取り専用 fullscreenEnabled プロパティは、全画面表示モードが使用可能かどうかを示します。
fullscreenEnabled: boolean
プロパティ値
boolean
head
ドキュメント インターフェイスの head 読み取り専用プロパティは、現在のドキュメントのヘッド要素を返します。
head: HTMLHeadElement
プロパティ値
HTMLHeadElement
hidden
Document.hidden読み取り専用プロパティは、ページが非表示と見なされるかどうかを示すブール値を返します。
hidden: boolean
プロパティ値
boolean
images
ドキュメント インターフェイスの images 読み取り専用プロパティは、現在の HTML ドキュメント内のイメージのコレクションを返します。
images: HTMLCollectionOf<HTMLImageElement>
プロパティ値
HTMLCollectionOf<HTMLImageElement>
implementation
Document.implementation プロパティは、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
Node インターフェイスの読み取り専用 ownerDocument プロパティは、ノードの最上位のドキュメント オブジェクトを返します。
ownerDocument: null
プロパティ値
null
pictureInPictureEnabled
使用可能な pictureInPictureEnabled の読み取り専用プロパティ。
pictureInPictureEnabled: boolean
プロパティ値
boolean
plugins
pluginsを表す 1 つ以上の HTMLEmbedElement を含む HTMLCollection の読み取り専用プロパティです。
plugins: HTMLCollectionOf<HTMLEmbedElement>
プロパティ値
HTMLCollectionOf<HTMLEmbedElement>
readyState
Document.readyState プロパティは、ドキュメントの読み込み状態を示します。
readyState: DocumentReadyState
プロパティ値
DocumentReadyState
referrer
rootElement
Document.rootElement は、ドキュメントのルート要素である要素 (ドキュメントの場合) を返します。
rootElement: SVGSVGElement | null
プロパティ値
SVGSVGElement | null
scripts
Document インターフェイスの scripts プロパティは、ドキュメント内のスクリプト要素の一覧を返します。
scripts: HTMLCollectionOf<HTMLScriptElement>
プロパティ値
HTMLCollectionOf<HTMLScriptElement>
scrollingElement
ドキュメント scrollingElement スクロールの読み取り専用プロパティです。
scrollingElement: Element | null
プロパティ値
Element | null
textContent
timeline
Document インターフェイスの timeline readonly プロパティは、現在のドキュメントの既定のタイムラインを表します。
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
Node インターフェイスの読み取り専用 baseURI プロパティは、ノードを含むドキュメントの絶対ベース URL を返します。
baseURI: string
プロパティ値
string
Node.baseURI から継承された
CDATA_SECTION_NODE
node は CDATASection ノードです。
CDATA_SECTION_NODE: 4
プロパティ値
4
Node.CDATA_SECTION_NODE から継承された
childElementCount
childNodes
Node インターフェイスの読み取り専用 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
other がノードの子孫である場合に設定されます。
DOCUMENT_POSITION_CONTAINED_BY: 16
プロパティ値
16
Node.DOCUMENT_POSITION_CONTAINED_BY から継承された
DOCUMENT_POSITION_CONTAINS
other がノードの先祖である場合に設定します。
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
Node インターフェイスの読み取り専用 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
Node インターフェイスの読み取り専用 isConnected プロパティは、ノードが Document オブジェクトに (直接的または間接的に) 接続されているかどうかを示すブール値を返します。
isConnected: boolean
プロパティ値
boolean
Node.isConnected から継承された
lastChild
Node インターフェイスの読み取り専用 lastChild プロパティは、ノードの最後の子を返します。子ノードがない場合は null します。
lastChild: ChildNode | null
プロパティ値
ChildNode | null
Node.lastChild から継承
lastElementChild
要素である最後の子を返し、それ以外の場合は null を返します。
lastElementChild: Element | null
プロパティ値
Element | null
parentNode.lastElementChild から継承
nextSibling
Node インターフェイスの読み取り専用 nextSibling プロパティは、親の Node.childNodes で指定されたノードのすぐ後にあるノードを返すか、指定したノードが親要素の最後の子である場合は null を返します。
nextSibling: ChildNode | null
プロパティ値
ChildNode | null
Node.nextSibling から継承された
nodeName
Node の読み取り専用 nodeName プロパティは、現在のノードの名前を文字列として返します。
nodeName: string
プロパティ値
string
Node.nodeName から継承された
nodeType
Node インターフェイスの読み取り専用 nodeType プロパティは、ノードが何であるかを識別する整数です。
nodeType: number
プロパティ値
number
node.nodeType から継承
nodeValue
Node インターフェイスの 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
Inherited From 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
Inherited From GlobalEventHandlers.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
プロパティ値
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Inherited From 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
Inherited From 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
Inherited From GlobalEventHandlers.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
プロパティ値
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Inherited From 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
Inherited From 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
onerror: OnErrorEventHandler
プロパティ値
OnErrorEventHandler
GlobalEventHandlers.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
Inherited From 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
Inherited From 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
Inherited From 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
Inherited From 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
Inherited From 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
Inherited From 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.toggle から継承された
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
Inherited From 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
Node インターフェイスの読み取り専用 parentElement プロパティは、DOM ノードの親要素を返します。または、ノードに親がない場合、またはその親が DOM 要素でない場合は null します。
parentElement: HTMLElement | null
プロパティ値
HTMLElement | null
node.parentElement から継承
parentNode
Node インターフェイスの読み取り専用 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
Node インターフェイスの読み取り専用 previousSibling プロパティは、指定したノードがその親の指定したノードの直前にあるノードを返します。指定したノードがそのリストの最初のノードである場合は、 null を返します。
previousSibling: ChildNode | null
プロパティ値
ChildNode | null
Node.previousSibling から継承された
PROCESSING_INSTRUCTION_NODE
ノードは ProcessingInstruction ノードです。
PROCESSING_INSTRUCTION_NODE: 7
プロパティ値
7
Node.PROCESSING_INSTRUCTION_NODE から継承された
styleSheets
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() メソッドは、指定したイベントがターゲットに配信されるたびに呼び出される関数を設定します。
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() は、別の Document からメソッドのドキュメントに node/dom を転送します。
function adoptNode<T>(node: T): T
パラメーター
- node
-
T
返品
T
captureEvents()
警告
この API は非推奨になりました。
function captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)
Document インターフェイスの caretPositionFromPoint() メソッドは、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()
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() メソッドは、 localNameで指定された HTML 要素を作成します。または、 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)
新しいテキスト ノードを作成します。
function createTextNode(data: string): Text
パラメーター
- data
-
string
返品
Text
createTreeWalker(Node, number, NodeFilter | null)
Document.createTreeWalker() creator メソッドは、新しく作成された 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()
Document インターフェイスの exitPictureInPicture() メソッドは、現在フローティング状態のこのドキュメントに含まれるビデオをピクチャインピクチャ モードから取り出し、画面の以前の状態を復元することを要求します。
function exitPictureInPicture(): Promise<void>
返品
Promise<void>
exitPointerLock()
Document インターフェイスの 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()
Document インターフェイスの hasStorageAccess() メソッドは、ドキュメントがサードパーティの未パーティション Cookie にアクセスできるかどうかを示すブール値で解決される 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)
Document.open()メソッドは、これがいくつかの副作用を伴うドキュメントを開きます。
function open(unused1?: string, unused2?: string): Document
パラメーター
- unused1
-
string
- unused2
-
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()
Document インターフェイスの requestStorageAccess() メソッドを使用すると、サード パーティのコンテキスト (iframe に埋め込まれている) に読み込まれたコンテンツで、サード パーティの Cookie とパーティション分割されていない状態へのアクセスを要求できます。
function requestStorageAccess(): Promise<void>
返品
Promise<void>
startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)
Document インターフェイスの startViewTransition() メソッドは、新しい同じドキュメント (SPA) ビュー遷移を開始し、それを表す ViewTransition オブジェクトを返します。
function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition
パラメーター
- callbackOptions
-
ViewTransitionUpdateCallback | StartViewTransitionOptions
返品
ViewTransition
write(string[])
Document インターフェイスの write() メソッドは、1 つ以上の TrustedHTML パラメーターまたは文字列パラメーターのテキストを、document.open() によって開かれたドキュメント ストリームに書き込みます。
function write(text: string[])
パラメーター
- text
-
string[]
writeln(string[])
Document インターフェイスの writeln() メソッドは、1 つ以上の TrustedHTML または文字列パラメーターのテキストを、document.open() によって開かれたドキュメント ストリームに書き込み、続けて改行文字を書き込みます。
function writeln(text: string[])
パラメーター
- text
-
string[]
継承済みメソッドの詳細
append((string | Node)[])
ノードの最後の子の後にノードを挿入し、ノード内の文字列を同等のテキスト ノードに置き換えます。
ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。
function append(nodes: (string | Node)[])
パラメーター
- nodes
-
(string | Node)[]
ParentNode.append から継承
appendChild<T>(T)
Node インターフェイスの appendChild() メソッドは、指定した親ノードの子の一覧の末尾にノードを追加します。
function appendChild<T>(node: T): T
パラメーター
- node
-
T
返品
T
node.appendChild から継承
cloneNode(boolean)
Node インターフェイスの cloneNode() メソッドは、このメソッドが呼び出されたノードの複製を返します。
function cloneNode(subtree?: boolean): Node
パラメーター
- subtree
-
boolean
返品
Node
Node.cloneNode から継承された
compareDocumentPosition(Node)
Node インターフェイスの compareDocumentPosition() メソッドは、呼び出されたノードを基準にして、引数ノードの位置を報告します。
function compareDocumentPosition(other: Node): number
パラメーター
- other
-
Node
返品
number
Node.compareDocumentPosition から継承された
contains(Node | null)
Node インターフェイスの contains() メソッドは、ノードが特定のノードの子孫であるかどうか、つまりノード自体、その直接の子 (Node.childNodes)、子の直接の子の 1 つであるかどうかを示すブール値を返します。
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()
Node インターフェイスの hasChildNodes() メソッドは、指定されたノードに子ノードがあるかどうかを示すブール値を返します。
function hasChildNodes(): boolean
返品
boolean
ノードから継承.hasChildNodes
insertBefore<T>(T, Node | null)
Node インターフェイスの insertBefore() メソッドは、指定された親ノードの子として 、参照ノード の前にノードを挿入 します。
function insertBefore<T>(node: T, child: Node | null): T
パラメーター
- node
-
T
- child
-
Node | null
返品
T
node.insertBefore から継承
isDefaultNamespace(string | null)
Node インターフェイスの isDefaultNamespace() メソッドは、名前空間 URI を引数として受け入れます。
function isDefaultNamespace(namespace: string | null): boolean
パラメーター
- namespace
-
string | null
返品
boolean
Node.isDefaultNamespace から継承された
isEqualNode(Node | null)
Node インターフェイスの isEqualNode() メソッドは、2 つのノードが等しいかどうかをテストします。
function isEqualNode(otherNode: Node | null): boolean
パラメーター
- otherNode
-
Node | null
返品
boolean
Node.isEqualNode から継承された
isSameNode(Node | null)
Node インターフェイスの isSameNode() メソッドは、厳密な等値演算子 === レガシ エイリアスです。
function isSameNode(otherNode: Node | null): boolean
パラメーター
- otherNode
-
Node | null
返品
boolean
Node.isSameNode から継承された
lookupNamespaceURI(string | null)
Node インターフェイスの lookupNamespaceURI() メソッドは、プレフィックスをパラメーターとして受け取り、特定のノードで関連付けられている名前空間 URI を返します (見つからない場合は null )。
function lookupNamespaceURI(prefix: string | null): string | null
パラメーター
- prefix
-
string | null
返品
string | null
node.lookupNamespaceURI から継承
lookupPrefix(string | null)
Node インターフェイスの lookupPrefix() メソッドは、特定の名前空間 URI のプレフィックスを含む文字列を返します (存在する場合)。存在しない場合は null 。
function lookupPrefix(namespace: string | null): string | null
パラメーター
- namespace
-
string | null
返品
string | null
Node.lookupPrefix から継承された
normalize()
Node インターフェイスの normalize() メソッドは、指定されたノードとそのすべてのサブツリーを 正規化された 形式に配置します。
function normalize()
Node.normalize から継承された
prepend((string | Node)[])
ノード内の文字列を同等の Text ノードに置き換えながら、ノードの最初の子の前にノードを挿入します。
ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。
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)
Node インターフェイスの removeChild() メソッドは、DOM から子ノードを削除し、削除されたノードを返します。
function removeChild<T>(child: T): T
パラメーター
- child
-
T
返品
T
node.removeChild から継承
replaceChild<T>(Node, T)
Node インターフェイスの replaceChild() メソッドは、指定された (親) ノード内の子ノードを置き換えます。
function replaceChild<T>(node: Node, child: T): T
パラメーター
- node
-
Node
- child
-
T
返品
T
Node.replaceChild から継承された
replaceChildren((string | Node)[])
ノード内の文字列を同等のテキスト ノードに置き換えながら、ノードのすべての子をノードに置き換えます。
ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。
function replaceChildren(nodes: (string | Node)[])
パラメーター
- nodes
-
(string | Node)[]
parentNode.replaceChildren から継承