Document interface

Document インターフェイスは、ブラウザーに読み込まれた Web ページを表し、Web ページのコンテンツ (DOM ツリー) へのエントリ ポイントとして機能します。

MDN リファレンス

Extends

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

プロパティ

alinkColor

文書の本文でアクティブなリンクの色を設定または返します。

all

Document インターフェイスの読み取り専用 all プロパティは、ドキュメント ノードにルート化された HTMLAllCollection を返します。

anchors

anchorsの読み取り専用プロパティ、 A HTMLCollectionです。

applets

ドキュメントの applets プロパティは、空の HTMLCollection を返します。

bgColor

非推奨の bgColor プロパティは、現在のドキュメントの背景色を取得または設定します。

body

Document.body プロパティは、そのような要素が存在しない場合にnullを表します。

MDN リファレンス

characterSet

Document.characterSet読み取り専用プロパティは、現在レンダリングされているドキュメントの文字エンコーディングを返します。

MDN リファレンス

charset
compatMode

Document.compatMode読み取り専用プロパティは、ドキュメントが「風変わり」モードまたは「標準」モードでレンダリングされるかどうかを示します。

MDN リファレンス

contentType

Document.contentType読み取り専用プロパティは、ドキュメントがレンダリングされる MIME の種類を返します。

MDN リファレンス

cookie

Document プロパティ cookie を使用すると、ドキュメントに関連付けられている Cookie の読み取りと書き込みを行うことができます。

MDN リファレンス

currentScript

Document.currentScript プロパティは、スクリプトが現在処理されており、JavaScript モジュールではないスクリプト要素を返します。

MDN リファレンス

defaultView

ブラウザーでは、 document.defaultView は This プロパティが読み取り専用であることを返します。

MDN リファレンス

designMode

document.designMode は、ドキュメント全体を編集可能にするかどうかを制御します。

MDN リファレンス

dir

Document.dir プロパティは、ドキュメントのテキストの方向を表す文字列です。左から右 (既定) か右から左か。

MDN リファレンス

doctype

Document インターフェイスの doctype 読み取り専用プロパティは、現在のドキュメントに関連付けられている Doctype を表す DocumentType オブジェクトです。

MDN リファレンス

documentElement

Document インターフェイスの documentElement 読み取り専用プロパティは、HTML ドキュメントの html 要素の例を返します)。

MDN リファレンス

documentURI

A 文字列の documentURI 読み取り専用プロパティです。

MDN リファレンス

domain

Document インターフェイスの domain プロパティは、同じ配信元ポリシーで使用される、現在のドキュメントの配信元のドメイン部分を取得または設定します。

embeds

embedsの読み取り専用プロパティ、 A HTMLCollectionです。

MDN リファレンス

fgColor

fgColor は、現在の文書の前景色 (テキストの色) を取得/設定します。

forms

ドキュメント インターフェイスの forms 読み取り専用プロパティは、ドキュメントに含まれるすべてのフォーム要素を一覧表示する HTMLCollection を返します。

MDN リファレンス

fragmentDirective

ドキュメント インターフェイスの fragmentDirective 読み取り専用プロパティは、現在のドキュメントの FragmentDirective を返します。

MDN リファレンス

fullscreen

古いドキュメント インターフェイスの fullscreen 読み取り専用プロパティは、ドキュメントが現在全画面表示モードでコンテンツを表示しているかどうかを報告します。

fullscreenEnabled

Document インターフェイスの読み取り専用 fullscreenEnabled プロパティは、全画面表示モードが使用可能かどうかを示します。

MDN リファレンス

head

ドキュメント インターフェイスの head 読み取り専用プロパティは、現在のドキュメントのヘッド要素を返します。

MDN リファレンス

hidden

Document.hidden読み取り専用プロパティは、ページが非表示と見なされるかどうかを示すブール値を返します。

MDN リファレンス

images

ドキュメント インターフェイスの images 読み取り専用プロパティは、現在の HTML ドキュメント内のイメージのコレクションを返します。

MDN リファレンス

implementation

Document.implementation プロパティは、DOMImplementation オブジェクトを返します。

MDN リファレンス

inputEncoding
lastModified

Document インターフェイスの lastModified プロパティは、現在のドキュメントが最後に変更された日付と現地時刻を含む文字列を返します。

MDN リファレンス

linkColor

Document.linkColor プロパティは、ドキュメント内のリンクの色を取得または設定します。

links

Document インターフェイスの links 読み取り専用プロパティは、すべてのエリア要素のコレクションと、href 属性の値を持つドキュメント内の要素を返します。

MDN リファレンス

location

Document.location読み取り専用プロパティは、その URL を変更して別の URL を読み込むためのメソッドを返し、提供します。

MDN リファレンス

mozCancelFullScreen
msExitFullscreen
onfullscreenchange

MDN リファレンス

onfullscreenerror

MDN リファレンス

onpointerlockchange

MDN リファレンス

onpointerlockerror

MDN リファレンス

onreadystatechange

MDN リファレンス

onvisibilitychange

MDN リファレンス

ownerDocument

Node インターフェイスの読み取り専用 ownerDocument プロパティは、ノードの最上位のドキュメント オブジェクトを返します。

MDN リファレンス

pictureInPictureEnabled

使用可能な pictureInPictureEnabled の読み取り専用プロパティ。

MDN リファレンス

plugins

pluginsを表す 1 つ以上の HTMLEmbedElement を含む HTMLCollection の読み取り専用プロパティです。

MDN リファレンス

readyState

Document.readyState プロパティは、ドキュメントの読み込み状態を示します。

MDN リファレンス

referrer

Document.referrer プロパティは、このページにリンクされているページの URI を返します。

MDN リファレンス

rootElement

Document.rootElement は、ドキュメントのルート要素である要素 (ドキュメントの場合) を返します。

scripts

Document インターフェイスの scripts プロパティは、ドキュメント内のスクリプト要素の一覧を返します。

MDN リファレンス

scrollingElement

ドキュメント scrollingElement スクロールの読み取り専用プロパティです。

MDN リファレンス

textContent

MDN リファレンス

timeline

Document インターフェイスの timeline readonly プロパティは、現在のドキュメントの既定のタイムラインを表します。

MDN リファレンス

title

document.title プロパティは、ドキュメントの現在のタイトルを取得または設定します。

MDN リファレンス

URL

ドキュメント インターフェイスの URL 読み取り専用プロパティは、ドキュメントの場所を文字列として返します。

MDN リファレンス

visibilityState

Document.visibilityState読み取り専用プロパティは、ドキュメントの可視性を返します。

MDN リファレンス

vlinkColor

Document.vlinkColor プロパティは、ユーザーがドキュメント内でアクセスしたリンクの色を取得または設定します。

webkitExitFullscreen

継承されたプロパティ

activeElement

キー イベントのルーティング先またはルーティング先となるドキュメント内の最も深い要素を返します。 これは、大まかに言えば、ドキュメント内のフォーカスされた要素です。

この API の目的上、子参照コンテキストにフォーカスがある場合、そのコンテナーは親参照コンテキストにフォーカスされます。 たとえば、ユーザーが iframe 内のテキスト コントロールにフォーカスを移動した場合、iframe は iframe のノード ドキュメント内の activeElement API によって返される要素です。

同様に、フォーカスされた要素が documentOrShadowRoot とは異なるノード ツリーにある場合、documentOrShadowRoot がフォーカスされた要素のシャドウを含む先祖である場合、返される要素は documentOrShadowRoot と同じノード ツリー内にあるホストになり、そうでない場合は null になります。

MDN リファレンス

adoptedStyleSheets

MDN リファレンス

ATTRIBUTE_NODE
baseURI

Node インターフェイスの読み取り専用 baseURI プロパティは、ノードを含むドキュメントの絶対ベース URL を返します。

MDN リファレンス

CDATA_SECTION_NODE

node は CDATASection ノードです。

childElementCount

MDN リファレンス

childNodes

Node インターフェイスの読み取り専用 childNodes プロパティは、最初の子ノードにインデックスが割り当てられたライブ 0を返します。

MDN リファレンス

children

子要素を返します。

MDN リファレンス

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
firstChild

Node インターフェイスの読み取り専用 firstChild プロパティは、ツリー内のノードの最初の子を返します。ノードに子がない場合は null します。

MDN リファレンス

firstElementChild

要素である最初の子を返し、それ以外の場合は null を返します。

MDN リファレンス

fonts

MDN リファレンス

fullscreenElement

ドキュメントの全画面表示要素を返します。

MDN リファレンス

isConnected

Node インターフェイスの読み取り専用 isConnected プロパティは、ノードが Document オブジェクトに (直接的または間接的に) 接続されているかどうかを示すブール値を返します。

MDN リファレンス

lastChild

Node インターフェイスの読み取り専用 lastChild プロパティは、ノードの最後の子を返します。子ノードがない場合は null します。

MDN リファレンス

lastElementChild

要素である最後の子を返し、それ以外の場合は null を返します。

MDN リファレンス

nextSibling

Node インターフェイスの読み取り専用 nextSibling プロパティは、親の Node.childNodes で指定されたノードのすぐ後にあるノードを返すか、指定したノードが親要素の最後の子である場合は null を返します。

MDN リファレンス

nodeName

Node の読み取り専用 nodeName プロパティは、現在のノードの名前を文字列として返します。

MDN リファレンス

nodeType

Node インターフェイスの読み取り専用 nodeType プロパティは、ノードが何であるかを識別する整数です。

MDN リファレンス

nodeValue

Node インターフェイスの nodeValue プロパティは、現在のノードの値を取得または設定します。

MDN リファレンス

NOTATION_NODE
onabort

MDN リファレンス

onanimationcancel

MDN リファレンス

onanimationend

MDN リファレンス

onanimationiteration

MDN リファレンス

onanimationstart

MDN リファレンス

onauxclick

MDN リファレンス

onbeforeinput

MDN リファレンス

onbeforematch

MDN リファレンス

onbeforetoggle

MDN リファレンス

onblur

MDN リファレンス

oncancel

MDN リファレンス

oncanplay

MDN リファレンス

oncanplaythrough

MDN リファレンス

onchange

MDN リファレンス

onclick

MDN リファレンス

onclose

MDN リファレンス

oncontextlost

MDN リファレンス

oncontextmenu

MDN リファレンス

oncontextrestored

MDN リファレンス

oncopy

MDN リファレンス

oncuechange

MDN リファレンス

oncut

MDN リファレンス

ondblclick

MDN リファレンス

ondrag

MDN リファレンス

ondragend

MDN リファレンス

ondragenter

MDN リファレンス

ondragleave

MDN リファレンス

ondragover

MDN リファレンス

ondragstart

MDN リファレンス

ondrop

MDN リファレンス

ondurationchange

MDN リファレンス

onemptied

MDN リファレンス

onended

MDN リファレンス

onerror

MDN リファレンス

onfocus

MDN リファレンス

onformdata

MDN リファレンス

ongotpointercapture

MDN リファレンス

oninput

MDN リファレンス

oninvalid

MDN リファレンス

onkeydown

MDN リファレンス

onkeypress
onkeyup

MDN リファレンス

onload

MDN リファレンス

onloadeddata

MDN リファレンス

onloadedmetadata

MDN リファレンス

onloadstart

MDN リファレンス

onlostpointercapture

MDN リファレンス

onmousedown

MDN リファレンス

onmouseenter

MDN リファレンス

onmouseleave

MDN リファレンス

onmousemove

MDN リファレンス

onmouseout

MDN リファレンス

onmouseover

MDN リファレンス

onmouseup

MDN リファレンス

onpaste

MDN リファレンス

onpause

MDN リファレンス

onplay

MDN リファレンス

onplaying

MDN リファレンス

onpointercancel

MDN リファレンス

onpointerdown

MDN リファレンス

onpointerenter

MDN リファレンス

onpointerleave

MDN リファレンス

onpointermove

MDN リファレンス

onpointerout

MDN リファレンス

onpointerover

MDN リファレンス

onpointerrawupdate

セキュリティで保護されたコンテキストでのみ使用できます。

MDN リファレンス

onpointerup

MDN リファレンス

onprogress

MDN リファレンス

onratechange

MDN リファレンス

onreset

MDN リファレンス

onresize

MDN リファレンス

onscroll

MDN リファレンス

onscrollend

MDN リファレンス

onsecuritypolicyviolation

MDN リファレンス

onseeked

MDN リファレンス

onseeking

MDN リファレンス

onselect

MDN リファレンス

onselectionchange

MDN リファレンス

onselectstart

MDN リファレンス

onslotchange

MDN リファレンス

onstalled

MDN リファレンス

onsubmit

MDN リファレンス

onsuspend

MDN リファレンス

ontimeupdate

MDN リファレンス

ontoggle

MDN リファレンス

ontouchcancel

MDN リファレンス

ontouchend

MDN リファレンス

ontouchmove

MDN リファレンス

ontouchstart

MDN リファレンス

ontransitioncancel

MDN リファレンス

ontransitionend

MDN リファレンス

ontransitionrun

MDN リファレンス

ontransitionstart

MDN リファレンス

onvolumechange

MDN リファレンス

onwaiting

MDN リファレンス

onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel

MDN リファレンス

parentElement

Node インターフェイスの読み取り専用 parentElement プロパティは、DOM ノードの親要素を返します。または、ノードに親がない場合、またはその親が DOM 要素でない場合は null します。

MDN リファレンス

parentNode

Node インターフェイスの読み取り専用 parentNode プロパティは、DOM ツリー内の指定されたノードの親を返します。

MDN リファレンス

pictureInPictureElement

MDN リファレンス

pointerLockElement

MDN リファレンス

previousSibling

Node インターフェイスの読み取り専用 previousSibling プロパティは、指定したノードがその親の指定したノードの直前にあるノードを返します。指定したノードがそのリストの最初のノードである場合は、 null を返します。

MDN リファレンス

PROCESSING_INSTRUCTION_NODE

ノードは ProcessingInstruction ノードです。

styleSheets

MDN リファレンス

TEXT_NODE

ノードはテキスト ノードです。

メソッド

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

EventTarget インターフェイスの addEventListener() メソッドは、指定したイベントがターゲットに配信されるたびに呼び出される関数を設定します。

MDN リファレンス

adoptNode<T>(T)

Document.adoptNode() は、別の Document からメソッドのドキュメントに node/dom を転送します。

MDN リファレンス

captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)

Document インターフェイスの caretPositionFromPoint() メソッドは、DOM ノードを含む CaretPosition オブジェクトと、そのノード内のキャレットとキャレットの文字オフセットを返します。

MDN リファレンス

caretRangeFromPoint(number, number)
clear()

Document.clear() メソッドは何も行いませんが、エラーは発生しません。

close()

Document.close() メソッドは、Document.open() で開かれたドキュメントへの書き込みを終了します。

MDN リファレンス

createAttribute(string)

Document.createAttribute() メソッドは、新しい属性ノードを作成し、それを返します。

MDN リファレンス

createAttributeNS(string | null, string)

Document.createAttributeNS() メソッドは、指定された名前空間 URI と修飾名を持つ新しい属性ノードを作成し、それを返します。

MDN リファレンス

createCDATASection(string)

createCDATASection() は新しい CDATA セクション ノードを作成し、それを返します。

MDN リファレンス

createComment(string)

createComment() は新しいコメント ノードを作成し、それを返します。

MDN リファレンス

createDocumentFragment()

DOM ノードを追加してオフスクリーン DOM ツリーを構築できる新しい空の DocumentFragment を作成します。

MDN リファレンス

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

HTML ドキュメントでは、 document.createElement() メソッドは、 localNameで指定された HTML 要素を作成します。または、 localName が認識されない場合は HTMLUnknownElement を作成します。

MDN リファレンス

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

指定した名前空間 URI と修飾名を持つ要素を作成します。

MDN リファレンス

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

指定した型のイベントを作成します。

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

Document.createNodeIterator() メソッドは、新しいNodeIterator オブジェクトを返します。

MDN リファレンス

createProcessingInstruction(string, string)

createProcessingInstruction() は新しい処理命令ノードを生成し、それを返します。

MDN リファレンス

createRange()

Document.createRange() メソッドは、新しい js-nolint createRange() None を返します。

MDN リファレンス

createTextNode(string)

新しいテキスト ノードを作成します。

MDN リファレンス

createTreeWalker(Node, number, NodeFilter | null)

Document.createTreeWalker() creator メソッドは、新しく作成された TreeWalker オブジェクトを返します。

MDN リファレンス

execCommand(string, boolean, string)

execCommand メソッドは、複数の異なるコマンドを実装します。

exitFullscreen()

Document メソッド exitFullscreen() 、現在全画面表示モードで表示されているこのドキュメントの要素を全画面表示モードから外し、画面の以前の状態を復元することを要求します。

MDN リファレンス

exitPictureInPicture()

Document インターフェイスの exitPictureInPicture() メソッドは、現在フローティング状態のこのドキュメントに含まれるビデオをピクチャインピクチャ モードから取り出し、画面の以前の状態を復元することを要求します。

MDN リファレンス

exitPointerLock()

Document インターフェイスの exitPointerLock() メソッドは、Element.requestPointerLock を介して以前に要求されたポインター ロックを非同期的に解放します。

MDN リファレンス

getElementById(string)

ID が elementId であるノードの子孫内の最初の要素を返します。

MDN リファレンス

getElementsByClassName(string)

指定されたすべてのクラス名を持つすべての子要素の getElementsByClassName メソッド。

MDN リファレンス

getElementsByName(string)

Document オブジェクトの getElementsByName() メソッドは、ドキュメント内の特定の name 属性を持つ要素の NodeList コレクションを返します。

MDN リファレンス

getElementsByTagName(string)
getElementsByTagName<K>(K)

ルート ノードを含む、完全なドキュメントの getElementsByTagName メソッドが検索されます。

MDN リファレンス

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

指定された名前空間に属する特定のタグ名を持つ要素の一覧を返します。

MDN リファレンス

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

Document インターフェイスの getSelection() メソッドは、ユーザーが選択したテキストの範囲またはキャレットの現在位置を表す、このドキュメントに関連付けられた Selection オブジェクトを返します。

MDN リファレンス

hasFocus()

ドキュメント インターフェイスの hasFocus() メソッドは、ドキュメントまたはドキュメント内の任意の要素にフォーカスがあるかどうかを示すブール値を返します。

MDN リファレンス

hasStorageAccess()

Document インターフェイスの hasStorageAccess() メソッドは、ドキュメントがサードパーティの未パーティション Cookie にアクセスできるかどうかを示すブール値で解決される Promise を返します。

MDN リファレンス

importNode<T>(T, boolean | ImportNodeOptions)

Document オブジェクトの importNode() メソッドは、後で現在のドキュメントに挿入されたコピーを作成します。

MDN リファレンス

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

Document.open()メソッドは、これがいくつかの副作用を伴うドキュメントを開きます。

MDN リファレンス

queryCommandEnabled(string)

Document.queryCommandEnabled() メソッドは、指定したエディター コマンドがブラウザーで有効になっているかどうかを報告します。

queryCommandIndeterm(string)
queryCommandState(string)

queryCommandState() メソッドは、現在の選択範囲に特定の Document.execCommand() コマンドが適用されているかどうかを示します。

queryCommandSupported(string)

Document.queryCommandSupported() メソッドは、指定したエディター コマンドがブラウザーでサポートされているかどうかを報告します。

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

EventTarget インターフェイスの removeEventListener() メソッドは、以前に EventTarget.addEventListener() に登録されたイベント リスナーをターゲットから削除します。

MDN リファレンス

requestStorageAccess()

Document インターフェイスの requestStorageAccess() メソッドを使用すると、サード パーティのコンテキスト (iframe に埋め込まれている) に読み込まれたコンテンツで、サード パーティの Cookie とパーティション分割されていない状態へのアクセスを要求できます。

MDN リファレンス

startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)

Document インターフェイスの startViewTransition() メソッドは、新しい同じドキュメント (SPA) ビュー遷移を開始し、それを表す ViewTransition オブジェクトを返します。

MDN リファレンス

write(string[])

Document インターフェイスの write() メソッドは、1 つ以上の TrustedHTML パラメーターまたは文字列パラメーターのテキストを、document.open() によって開かれたドキュメント ストリームに書き込みます。

writeln(string[])

Document インターフェイスの writeln() メソッドは、1 つ以上の TrustedHTML または文字列パラメーターのテキストを、document.open() によって開かれたドキュメント ストリームに書き込み、続けて改行文字を書き込みます。

MDN リファレンス

継承されたメソッド

append((string | Node)[])

ノードの最後の子の後にノードを挿入し、ノード内の文字列を同等のテキスト ノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

MDN リファレンス

appendChild<T>(T)

Node インターフェイスの appendChild() メソッドは、指定した親ノードの子の一覧の末尾にノードを追加します。

MDN リファレンス

cloneNode(boolean)

Node インターフェイスの cloneNode() メソッドは、このメソッドが呼び出されたノードの複製を返します。

MDN リファレンス

compareDocumentPosition(Node)

Node インターフェイスの compareDocumentPosition() メソッドは、呼び出されたノードを基準にして、引数ノードの位置を報告します。

MDN リファレンス

contains(Node | null)

Node インターフェイスの contains() メソッドは、ノードが特定のノードの子孫であるかどうか、つまりノード自体、その直接の子 (Node.childNodes)、子の直接の子の 1 つであるかどうかを示すブール値を返します。

MDN リファレンス

createExpression(string, XPathNSResolver | null)

MDN リファレンス

createNSResolver(Node)
dispatchEvent(Event)

EventTarget の dispatchEvent() メソッドは、イベントをオブジェクトに送信し、(同期的に) 影響を受けるイベント リスナーを適切な順序で呼び出します。

MDN リファレンス

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

MDN リファレンス

getAnimations()

MDN リファレンス

getRootNode(GetRootNodeOptions)

Node インターフェイスの getRootNode() メソッドは、コンテキスト オブジェクトのルートを返します。このルートには、シャドウ ルート (使用可能な場合) が必要に応じて含まれます。

MDN リファレンス

hasChildNodes()

Node インターフェイスの hasChildNodes() メソッドは、指定されたノードに子ノードがあるかどうかを示すブール値を返します。

MDN リファレンス

insertBefore<T>(T, Node | null)

Node インターフェイスの insertBefore() メソッドは、指定された親ノードの子として 、参照ノード の前にノードを挿入 します。

MDN リファレンス

isDefaultNamespace(string | null)

Node インターフェイスの isDefaultNamespace() メソッドは、名前空間 URI を引数として受け入れます。

MDN リファレンス

isEqualNode(Node | null)

Node インターフェイスの isEqualNode() メソッドは、2 つのノードが等しいかどうかをテストします。

MDN リファレンス

isSameNode(Node | null)

Node インターフェイスの isSameNode() メソッドは、厳密な等値演算子 === レガシ エイリアスです。

MDN リファレンス

lookupNamespaceURI(string | null)

Node インターフェイスの lookupNamespaceURI() メソッドは、プレフィックスをパラメーターとして受け取り、特定のノードで関連付けられている名前空間 URI を返します (見つからない場合は null )。

MDN リファレンス

lookupPrefix(string | null)

Node インターフェイスの lookupPrefix() メソッドは、特定の名前空間 URI のプレフィックスを含む文字列を返します (存在する場合)。存在しない場合は null 。

MDN リファレンス

normalize()

Node インターフェイスの normalize() メソッドは、指定されたノードとそのすべてのサブツリーを 正規化された 形式に配置します。

MDN リファレンス

prepend((string | Node)[])

ノード内の文字列を同等の Text ノードに置き換えながら、ノードの最初の子の前にノードを挿入します。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

MDN リファレンス

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

セレクターに一致するノードの子孫である最初の要素を返します。

MDN リファレンス

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

セレクターに一致するノードのすべての要素の子孫を返します。

MDN リファレンス

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

Node インターフェイスの removeChild() メソッドは、DOM から子ノードを削除し、削除されたノードを返します。

MDN リファレンス

replaceChild<T>(Node, T)

Node インターフェイスの replaceChild() メソッドは、指定された (親) ノード内の子ノードを置き換えます。

MDN リファレンス

replaceChildren((string | Node)[])

ノード内の文字列を同等のテキスト ノードに置き換えながら、ノードのすべての子をノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

MDN リファレンス

プロパティの詳細

alinkColor

警告

この API は非推奨になりました。

MDN Reference

文書の本文でアクティブなリンクの色を設定または返します。

alinkColor: string

プロパティ値

string

all

警告

この API は非推奨になりました。

MDN Reference

Document インターフェイスの読み取り専用 all プロパティは、ドキュメント ノードにルート化された HTMLAllCollection を返します。

all: HTMLAllCollection

プロパティ値

HTMLAllCollection

anchors

警告

この API は非推奨になりました。

MDN Reference

anchorsの読み取り専用プロパティ、 A HTMLCollectionです。

anchors: HTMLCollectionOf<HTMLAnchorElement>

プロパティ値

HTMLCollectionOf<HTMLAnchorElement>

applets

警告

この API は非推奨になりました。

MDN Reference

ドキュメントの applets プロパティは、空の HTMLCollection を返します。

applets: HTMLCollection

プロパティ値

HTMLCollection

bgColor

警告

この API は非推奨になりました。

MDN Reference

非推奨の bgColor プロパティは、現在のドキュメントの背景色を取得または設定します。

bgColor: string

プロパティ値

string

body

Document.body プロパティは、そのような要素が存在しない場合にnullを表します。

MDN リファレンス

body: HTMLElement

プロパティ値

HTMLElement

characterSet

Document.characterSet読み取り専用プロパティは、現在レンダリングされているドキュメントの文字エンコーディングを返します。

MDN リファレンス

characterSet: string

プロパティ値

string

charset

警告

この API は非推奨になりました。

This is a legacy alias of characterSet.

MDN Reference

charset: string

プロパティ値

string

compatMode

Document.compatMode読み取り専用プロパティは、ドキュメントが「風変わり」モードまたは「標準」モードでレンダリングされるかどうかを示します。

MDN リファレンス

compatMode: string

プロパティ値

string

contentType

Document.contentType読み取り専用プロパティは、ドキュメントがレンダリングされる MIME の種類を返します。

MDN リファレンス

contentType: string

プロパティ値

string

Document プロパティ cookie を使用すると、ドキュメントに関連付けられている Cookie の読み取りと書き込みを行うことができます。

MDN リファレンス

cookie: string

プロパティ値

string

currentScript

Document.currentScript プロパティは、スクリプトが現在処理されており、JavaScript モジュールではないスクリプト要素を返します。

MDN リファレンス

currentScript: HTMLOrSVGScriptElement | null

プロパティ値

HTMLOrSVGScriptElement | null

defaultView

ブラウザーでは、 document.defaultView は This プロパティが読み取り専用であることを返します。

MDN リファレンス

defaultView: (Window & typeof globalThis) | null

プロパティ値

(Window & typeof globalThis) | null

designMode

document.designMode は、ドキュメント全体を編集可能にするかどうかを制御します。

MDN リファレンス

designMode: string

プロパティ値

string

dir

Document.dir プロパティは、ドキュメントのテキストの方向を表す文字列です。左から右 (既定) か右から左か。

MDN リファレンス

dir: string

プロパティ値

string

doctype

Document インターフェイスの doctype 読み取り専用プロパティは、現在のドキュメントに関連付けられている Doctype を表す DocumentType オブジェクトです。

MDN リファレンス

doctype: DocumentType | null

プロパティ値

DocumentType | null

documentElement

Document インターフェイスの documentElement 読み取り専用プロパティは、HTML ドキュメントの html 要素の例を返します)。

MDN リファレンス

documentElement: HTMLElement

プロパティ値

HTMLElement

documentURI

A 文字列の documentURI 読み取り専用プロパティです。

MDN リファレンス

documentURI: string

プロパティ値

string

domain

警告

この API は非推奨になりました。

MDN Reference

Document インターフェイスの domain プロパティは、同じ配信元ポリシーで使用される、現在のドキュメントの配信元のドメイン部分を取得または設定します。

domain: string

プロパティ値

string

embeds

embedsの読み取り専用プロパティ、 A HTMLCollectionです。

MDN リファレンス

embeds: HTMLCollectionOf<HTMLEmbedElement>

プロパティ値

HTMLCollectionOf<HTMLEmbedElement>

fgColor

警告

この API は非推奨になりました。

MDN Reference

fgColor は、現在の文書の前景色 (テキストの色) を取得/設定します。

fgColor: string

プロパティ値

string

forms

ドキュメント インターフェイスの forms 読み取り専用プロパティは、ドキュメントに含まれるすべてのフォーム要素を一覧表示する HTMLCollection を返します。

MDN リファレンス

forms: HTMLCollectionOf<HTMLFormElement>

プロパティ値

HTMLCollectionOf<HTMLFormElement>

fragmentDirective

ドキュメント インターフェイスの fragmentDirective 読み取り専用プロパティは、現在のドキュメントの FragmentDirective を返します。

MDN リファレンス

fragmentDirective: FragmentDirective

プロパティ値

FragmentDirective

fullscreen

警告

この API は非推奨になりました。

MDN Reference

古いドキュメント インターフェイスの fullscreen 読み取り専用プロパティは、ドキュメントが現在全画面表示モードでコンテンツを表示しているかどうかを報告します。

fullscreen: boolean

プロパティ値

boolean

fullscreenEnabled

Document インターフェイスの読み取り専用 fullscreenEnabled プロパティは、全画面表示モードが使用可能かどうかを示します。

MDN リファレンス

fullscreenEnabled: boolean

プロパティ値

boolean

head

ドキュメント インターフェイスの head 読み取り専用プロパティは、現在のドキュメントのヘッド要素を返します。

MDN リファレンス

head: HTMLHeadElement

プロパティ値

HTMLHeadElement

hidden

Document.hidden読み取り専用プロパティは、ページが非表示と見なされるかどうかを示すブール値を返します。

MDN リファレンス

hidden: boolean

プロパティ値

boolean

images

ドキュメント インターフェイスの images 読み取り専用プロパティは、現在の HTML ドキュメント内のイメージのコレクションを返します。

MDN リファレンス

images: HTMLCollectionOf<HTMLImageElement>

プロパティ値

HTMLCollectionOf<HTMLImageElement>

implementation

Document.implementation プロパティは、DOMImplementation オブジェクトを返します。

MDN リファレンス

implementation: DOMImplementation

プロパティ値

DOMImplementation

inputEncoding

警告

この API は非推奨になりました。

This is a legacy alias of characterSet.

MDN Reference

inputEncoding: string

プロパティ値

string

lastModified

Document インターフェイスの lastModified プロパティは、現在のドキュメントが最後に変更された日付と現地時刻を含む文字列を返します。

MDN リファレンス

lastModified: string

プロパティ値

string

linkColor

警告

この API は非推奨になりました。

MDN Reference

Document.linkColor プロパティは、ドキュメント内のリンクの色を取得または設定します。

linkColor: string

プロパティ値

string

Document インターフェイスの links 読み取り専用プロパティは、すべてのエリア要素のコレクションと、href 属性の値を持つドキュメント内の要素を返します。

MDN リファレンス

links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>

プロパティ値

HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>

location

Document.location読み取り専用プロパティは、その URL を変更して別の URL を読み込むためのメソッドを返し、提供します。

MDN リファレンス

Location location

プロパティ値

Location

mozCancelFullScreen

mozCancelFullScreen: any

プロパティ値

any

msExitFullscreen

msExitFullscreen: any

プロパティ値

any

onfullscreenchange

MDN リファレンス

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

プロパティ値

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

onfullscreenerror

MDN リファレンス

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

プロパティ値

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

onpointerlockchange

MDN リファレンス

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

プロパティ値

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

onpointerlockerror

MDN リファレンス

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

プロパティ値

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

onreadystatechange

MDN リファレンス

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

プロパティ値

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

onvisibilitychange

MDN リファレンス

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

プロパティ値

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

ownerDocument

Node インターフェイスの読み取り専用 ownerDocument プロパティは、ノードの最上位のドキュメント オブジェクトを返します。

MDN リファレンス

ownerDocument: null

プロパティ値

null

pictureInPictureEnabled

使用可能な pictureInPictureEnabled の読み取り専用プロパティ。

MDN リファレンス

pictureInPictureEnabled: boolean

プロパティ値

boolean

plugins

pluginsを表す 1 つ以上の HTMLEmbedElement を含む HTMLCollection の読み取り専用プロパティです。

MDN リファレンス

plugins: HTMLCollectionOf<HTMLEmbedElement>

プロパティ値

HTMLCollectionOf<HTMLEmbedElement>

readyState

Document.readyState プロパティは、ドキュメントの読み込み状態を示します。

MDN リファレンス

readyState: DocumentReadyState

プロパティ値

DocumentReadyState

referrer

Document.referrer プロパティは、このページにリンクされているページの URI を返します。

MDN リファレンス

referrer: string

プロパティ値

string

rootElement

警告

この API は非推奨になりました。

MDN Reference

Document.rootElement は、ドキュメントのルート要素である要素 (ドキュメントの場合) を返します。

rootElement: SVGSVGElement | null

プロパティ値

SVGSVGElement | null

scripts

Document インターフェイスの scripts プロパティは、ドキュメント内のスクリプト要素の一覧を返します。

MDN リファレンス

scripts: HTMLCollectionOf<HTMLScriptElement>

プロパティ値

HTMLCollectionOf<HTMLScriptElement>

scrollingElement

ドキュメント scrollingElement スクロールの読み取り専用プロパティです。

MDN リファレンス

scrollingElement: Element | null

プロパティ値

Element | null

textContent

MDN リファレンス

null textContent

プロパティ値

null

timeline

Document インターフェイスの timeline readonly プロパティは、現在のドキュメントの既定のタイムラインを表します。

MDN リファレンス

timeline: DocumentTimeline

プロパティ値

DocumentTimeline

title

document.title プロパティは、ドキュメントの現在のタイトルを取得または設定します。

MDN リファレンス

title: string

プロパティ値

string

URL

ドキュメント インターフェイスの URL 読み取り専用プロパティは、ドキュメントの場所を文字列として返します。

MDN リファレンス

URL: string

プロパティ値

string

visibilityState

Document.visibilityState読み取り専用プロパティは、ドキュメントの可視性を返します。

MDN リファレンス

visibilityState: DocumentVisibilityState

プロパティ値

DocumentVisibilityState

vlinkColor

警告

この API は非推奨になりました。

MDN Reference

Document.vlinkColor プロパティは、ユーザーがドキュメント内でアクセスしたリンクの色を取得または設定します。

vlinkColor: string

プロパティ値

string

webkitExitFullscreen

webkitExitFullscreen: void

プロパティ値

void

継承されたプロパティの詳細

activeElement

キー イベントのルーティング先またはルーティング先となるドキュメント内の最も深い要素を返します。 これは、大まかに言えば、ドキュメント内のフォーカスされた要素です。

この API の目的上、子参照コンテキストにフォーカスがある場合、そのコンテナーは親参照コンテキストにフォーカスされます。 たとえば、ユーザーが iframe 内のテキスト コントロールにフォーカスを移動した場合、iframe は iframe のノード ドキュメント内の activeElement API によって返される要素です。

同様に、フォーカスされた要素が documentOrShadowRoot とは異なるノード ツリーにある場合、documentOrShadowRoot がフォーカスされた要素のシャドウを含む先祖である場合、返される要素は documentOrShadowRoot と同じノード ツリー内にあるホストになり、そうでない場合は null になります。

MDN リファレンス

activeElement: Element | null

プロパティ値

Element | null

DocumentOrShadowRoot.activeElement から継承された

adoptedStyleSheets

MDN リファレンス

adoptedStyleSheets: CSSStyleSheet[]

プロパティ値

CSSStyleSheet[]

DocumentOrShadowRoot.adoptedStyleSheets から継承された

ATTRIBUTE_NODE

ATTRIBUTE_NODE: 2

プロパティ値

2

Node.ATTRIBUTE_NODE から継承された

baseURI

Node インターフェイスの読み取り専用 baseURI プロパティは、ノードを含むドキュメントの絶対ベース URL を返します。

MDN リファレンス

baseURI: string

プロパティ値

string

Node.baseURI から継承された

CDATA_SECTION_NODE

node は CDATASection ノードです。

CDATA_SECTION_NODE: 4

プロパティ値

4

Node.CDATA_SECTION_NODE から継承された

childElementCount

MDN リファレンス

childElementCount: number

プロパティ値

number

ParentNode.childElementCount から継承

childNodes

Node インターフェイスの読み取り専用 childNodes プロパティは、最初の子ノードにインデックスが割り当てられたライブ 0を返します。

MDN リファレンス

childNodes: NodeListOf<ChildNode>

プロパティ値

NodeListOf<ChildNode>

Node.childNodes から継承された

children

子要素を返します。

MDN リファレンス

children: HTMLCollection

プロパティ値

HTMLCollection

parentNode.children から継承

COMMENT_NODE

ノードはコメント ノードです。

COMMENT_NODE: 8

プロパティ値

8

Node.COMMENT_NODE から継承された

DOCUMENT_FRAGMENT_NODE

ノードは DocumentFragment ノードです。

DOCUMENT_FRAGMENT_NODE: 11

プロパティ値

11

Node.DOCUMENT_FRAGMENT_NODE から継承された

DOCUMENT_NODE

ノードはドキュメントです。

DOCUMENT_NODE: 9

プロパティ値

9

Node.DOCUMENT_NODE から継承された

DOCUMENT_POSITION_CONTAINED_BY

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 します。

MDN リファレンス

firstChild: ChildNode | null

プロパティ値

ChildNode | null

Node.firstChild から継承された

firstElementChild

要素である最初の子を返し、それ以外の場合は null を返します。

MDN リファレンス

firstElementChild: Element | null

プロパティ値

Element | null

parentNode.firstElementChild から継承

fonts

MDN リファレンス

fonts: FontFaceSet

プロパティ値

FontFaceSet

FontFaceSource.fonts から継承された

fullscreenElement

ドキュメントの全画面表示要素を返します。

MDN リファレンス

fullscreenElement: Element | null

プロパティ値

Element | null

DocumentOrShadowRoot.fullscreenElement から継承された

isConnected

Node インターフェイスの読み取り専用 isConnected プロパティは、ノードが Document オブジェクトに (直接的または間接的に) 接続されているかどうかを示すブール値を返します。

MDN リファレンス

isConnected: boolean

プロパティ値

boolean

Node.isConnected から継承された

lastChild

Node インターフェイスの読み取り専用 lastChild プロパティは、ノードの最後の子を返します。子ノードがない場合は null します。

MDN リファレンス

lastChild: ChildNode | null

プロパティ値

ChildNode | null

Node.lastChild から継承

lastElementChild

要素である最後の子を返し、それ以外の場合は null を返します。

MDN リファレンス

lastElementChild: Element | null

プロパティ値

Element | null

parentNode.lastElementChild から継承

nextSibling

Node インターフェイスの読み取り専用 nextSibling プロパティは、親の Node.childNodes で指定されたノードのすぐ後にあるノードを返すか、指定したノードが親要素の最後の子である場合は null を返します。

MDN リファレンス

nextSibling: ChildNode | null

プロパティ値

ChildNode | null

Node.nextSibling から継承された

nodeName

Node の読み取り専用 nodeName プロパティは、現在のノードの名前を文字列として返します。

MDN リファレンス

nodeName: string

プロパティ値

string

Node.nodeName から継承された

nodeType

Node インターフェイスの読み取り専用 nodeType プロパティは、ノードが何であるかを識別する整数です。

MDN リファレンス

nodeType: number

プロパティ値

number

node.nodeType から継承

nodeValue

Node インターフェイスの nodeValue プロパティは、現在のノードの値を取得または設定します。

MDN リファレンス

nodeValue: string | null

プロパティ値

string | null

Node.nodeValue から継承された

NOTATION_NODE

NOTATION_NODE: 12

プロパティ値

12

Node.NOTATION_NODE から継承された

onabort

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onabort から継承された

onanimationcancel

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onanimationcancel

onanimationend

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onanimationend から継承された

onanimationiteration

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onanimationiteration から継承された

onanimationstart

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onanimationstart から継承された

onauxclick

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onauxclick から継承された

onbeforeinput

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onbeforeinput から継承された

onbeforematch

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onbeforematch

onbeforetoggle

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onbeforetoggle

onblur

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onblur から継承された

oncancel

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.oncancel から継承された

oncanplay

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.oncanplay から継承された

oncanplaythrough

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.oncanplaythrough から継承された

onchange

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onchange から継承された

onclick

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onclick から継承された

onclose

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onclose から継承された

oncontextlost

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.oncontextlost

oncontextmenu

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.oncontextmenu から継承された

oncontextrestored

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.oncontextrestored

oncopy

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.oncopy

oncuechange

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.oncuechange から継承された

oncut

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.oncut

ondblclick

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ondblclick から継承された

ondrag

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ondrag から継承された

ondragend

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ondragend から継承された

ondragenter

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ondragenter から継承された

ondragleave

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ondragleave から継承された

ondragover

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.ondragover から継承

ondragstart

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.ondragstart から継承

ondrop

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.ondrop から継承

ondurationchange

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ondurationchange から継承された

onemptied

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onemptied から継承された

onended

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onended から継承された

onerror

MDN リファレンス

onerror: OnErrorEventHandler

プロパティ値

OnErrorEventHandler

GlobalEventHandlers.onerror から継承された

onfocus

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onfocus から継承された

onformdata

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onformdata から継承された

ongotpointercapture

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.ongotpointercapture

oninput

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.oninput から継承された

oninvalid

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.oninvalid から継承された

onkeydown

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onkeydown から継承された

onkeypress

警告

この API は非推奨になりました。

MDN Reference

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

プロパティ値

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

GlobalEventHandlers.onkeypress から継承された

onkeyup

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onkeyup から継承された

onload

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onload から継承された

onloadeddata

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onloadeddata から継承された

onloadedmetadata

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onloadedmetadata から継承された

onloadstart

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onloadstart から継承された

onlostpointercapture

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onlostpointercapture

onmousedown

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onmousedown から継承された

onmouseenter

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onmouseenter から継承された

onmouseleave

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onmouseleave から継承された

onmousemove

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onmousemove から継承された

onmouseout

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onmouseout から継承された

onmouseover

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onmouseover から継承された

onmouseup

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onmouseup から継承された

onpaste

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onpaste

onpause

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onpause から継承された

onplay

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onplay から継承された

onplaying

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onplaying から継承された

onpointercancel

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onpointercancel から継承された

onpointerdown

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.onpointerdown から継承

onpointerenter

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onpointerenter から継承された

onpointerleave

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onpointerleave から継承された

onpointermove

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onpointermove から継承

onpointerout

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onpointerout から継承された

onpointerover

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.onpointerover から継承

onpointerrawupdate

セキュリティで保護されたコンテキストでのみ使用できます。

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onpointerrawupdate

onpointerup

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onpointerup から継承された

onprogress

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onprogress から継承された

onratechange

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onratechange から継承された

onreset

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onreset から継承された

onresize

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onresize から継承された

onscroll

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onscroll から継承された

onscrollend

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onscrollend

onsecuritypolicyviolation

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onsecuritypolicyviolation から継承された

onseeked

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onseeked から継承された

onseeking

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onseeking から継承された

onselect

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onselect から継承された

onselectionchange

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onselectionchange から継承された

onselectstart

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.onselectstart から継承

onslotchange

MDN リファレンス

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

プロパティ値

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

から継承 GlobalEventHandlers.onslotchange

onstalled

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onstalled から継承された

onsubmit

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.onsubmit から継承

onsuspend

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onsuspend

ontimeupdate

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ontimeupdate から継承された

ontoggle

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.toggle から継承された

ontouchcancel

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ontouchcancel から継承された

ontouchend

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ontouchend から継承された

ontouchmove

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.ontouchmove から継承

ontouchstart

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ontouchstart から継承された

ontransitioncancel

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ontransitioncancel から継承された

ontransitionend

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.ontransitionend から継承

ontransitionrun

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.ontransitionrun から継承された

ontransitionstart

MDN リファレンス

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

プロパティ値

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

globalEventHandlers.ontransitionstart から継承

onvolumechange

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onvolumechange から継承された

onwaiting

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onwaiting から継承された

onwebkitanimationend

警告

この API は非推奨になりました。

This is a legacy alias of onanimationend.

MDN Reference

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

プロパティ値

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

Inherited From GlobalEventHandlers.onwebkitanimationend

onwebkitanimationiteration

警告

この API は非推奨になりました。

This is a legacy alias of onanimationiteration.

MDN Reference

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

プロパティ値

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

GlobalEventHandlers.onwebkitanimationiteration から継承された

onwebkitanimationstart

警告

この API は非推奨になりました。

This is a legacy alias of onanimationstart.

MDN Reference

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

プロパティ値

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

GlobalEventHandlers.onwebkitanimationstart から継承された

onwebkittransitionend

警告

この API は非推奨になりました。

This is a legacy alias of ontransitionend.

MDN Reference

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

プロパティ値

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

GlobalEventHandlers.onwebkittransitionend から継承された

onwheel

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onwheel から継承された

parentElement

Node インターフェイスの読み取り専用 parentElement プロパティは、DOM ノードの親要素を返します。または、ノードに親がない場合、またはその親が DOM 要素でない場合は null します。

MDN リファレンス

parentElement: HTMLElement | null

プロパティ値

HTMLElement | null

node.parentElement から継承

parentNode

Node インターフェイスの読み取り専用 parentNode プロパティは、DOM ツリー内の指定されたノードの親を返します。

MDN リファレンス

parentNode: ParentNode | null

プロパティ値

ParentNode | null

Node.parentNode から継承された

pictureInPictureElement

MDN リファレンス

pictureInPictureElement: Element | null

プロパティ値

Element | null

DocumentOrShadowRoot.pictureInPictureElement から継承された

pointerLockElement

MDN リファレンス

pointerLockElement: Element | null

プロパティ値

Element | null

DocumentOrShadowRoot.pointerLockElement から継承された

previousSibling

Node インターフェイスの読み取り専用 previousSibling プロパティは、指定したノードがその親の指定したノードの直前にあるノードを返します。指定したノードがそのリストの最初のノードである場合は、 null を返します。

MDN リファレンス

previousSibling: ChildNode | null

プロパティ値

ChildNode | null

Node.previousSibling から継承された

PROCESSING_INSTRUCTION_NODE

ノードは ProcessingInstruction ノードです。

PROCESSING_INSTRUCTION_NODE: 7

プロパティ値

7

Node.PROCESSING_INSTRUCTION_NODE から継承された

styleSheets

MDN リファレンス

styleSheets: StyleSheetList

プロパティ値

StyleSheetList

DocumentOrShadowRoot.styleSheets から継承された

TEXT_NODE

ノードはテキスト ノードです。

TEXT_NODE: 3

プロパティ値

3

Node.TEXT_NODE から継承された

メソッドの詳細

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)

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

パラメーター

type

string

listener

EventListenerOrEventListenerObject

options

boolean | AddEventListenerOptions

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

EventTarget インターフェイスの addEventListener() メソッドは、指定したイベントがターゲットに配信されるたびに呼び出される関数を設定します。

MDN リファレンス

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

パラメーター

type

K

listener

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

options

boolean | AddEventListenerOptions

adoptNode<T>(T)

Document.adoptNode() は、別の Document からメソッドのドキュメントに node/dom を転送します。

MDN リファレンス

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

パラメーター

node

T

返品

T

captureEvents()

警告

この API は非推奨になりました。

function captureEvents()

caretPositionFromPoint(number, number, CaretPositionFromPointOptions)

Document インターフェイスの caretPositionFromPoint() メソッドは、DOM ノードを含む CaretPosition オブジェクトと、そのノード内のキャレットとキャレットの文字オフセットを返します。

MDN リファレンス

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

パラメーター

x

number

y

number

options

CaretPositionFromPointOptions

返品

CaretPosition | null

caretRangeFromPoint(number, number)

警告

この API は非推奨になりました。

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

パラメーター

x

number

y

number

返品

Range | null

clear()

警告

この API は非推奨になりました。

MDN Reference

Document.clear() メソッドは何も行いませんが、エラーは発生しません。

function clear()

close()

Document.close() メソッドは、Document.open() で開かれたドキュメントへの書き込みを終了します。

MDN リファレンス

function close()

createAttribute(string)

Document.createAttribute() メソッドは、新しい属性ノードを作成し、それを返します。

MDN リファレンス

function createAttribute(localName: string): Attr

パラメーター

localName

string

返品

Attr

createAttributeNS(string | null, string)

Document.createAttributeNS() メソッドは、指定された名前空間 URI と修飾名を持つ新しい属性ノードを作成し、それを返します。

MDN リファレンス

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

パラメーター

namespace

string | null

qualifiedName

string

返品

Attr

createCDATASection(string)

createCDATASection() は新しい CDATA セクション ノードを作成し、それを返します。

MDN リファレンス

function createCDATASection(data: string): CDATASection

パラメーター

data

string

返品

CDATASection

createComment(string)

createComment() は新しいコメント ノードを作成し、それを返します。

MDN リファレンス

function createComment(data: string): Comment

パラメーター

data

string

返品

Comment

createDocumentFragment()

DOM ノードを追加してオフスクリーン DOM ツリーを構築できる新しい空の DocumentFragment を作成します。

MDN リファレンス

function createDocumentFragment(): DocumentFragment

返品

DocumentFragment

createElement(string, ElementCreationOptions)

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

パラメーター

tagName

string

options

ElementCreationOptions

返品

HTMLElement

createElement<K>(K, ElementCreationOptions)

HTML ドキュメントでは、 document.createElement() メソッドは、 localNameで指定された HTML 要素を作成します。または、 localName が認識されない場合は HTMLUnknownElement を作成します。

MDN リファレンス

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

パラメーター

tagName

K

options

ElementCreationOptions

返品

HTMLElementTagNameMap[K]

createElement<K>(K, ElementCreationOptions)

警告

この API は非推奨になりました。

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

パラメーター

tagName

K

options

ElementCreationOptions

返品

HTMLElementDeprecatedTagNameMap[K]

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

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

パラメーター

namespaceURI

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

qualifiedName

string

返品

MathMLElement

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

指定した名前空間 URI と修飾名を持つ要素を作成します。

MDN リファレンス

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

パラメーター

namespaceURI

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

qualifiedName

string

返品

HTMLElement

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

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

パラメーター

namespaceURI

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

qualifiedName

string

返品

SVGElement

createElementNS(string | null, string, ElementCreationOptions)

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

パラメーター

namespaceURI

string | null

qualifiedName

string

options

ElementCreationOptions

返品

Element

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

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

パラメーター

namespace

string | null

qualifiedName

string

options

string | ElementCreationOptions

返品

Element

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

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

パラメーター

namespaceURI

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

qualifiedName

K

返品

MathMLElementTagNameMap[K]

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

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

パラメーター

namespaceURI

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

qualifiedName

K

返品

SVGElementTagNameMap[K]

createEvent("AnimationEvent")

警告

この API は非推奨になりました。

MDN Reference

指定した型のイベントを作成します。

function createEvent(eventInterface: "AnimationEvent"): AnimationEvent

パラメーター

eventInterface

"AnimationEvent"

返品

AnimationEvent

createEvent("AnimationPlaybackEvent")

function createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent

パラメーター

eventInterface

"AnimationPlaybackEvent"

返品

AnimationPlaybackEvent

createEvent("AudioProcessingEvent")

function createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent

パラメーター

eventInterface

"AudioProcessingEvent"

返品

AudioProcessingEvent

createEvent("BeforeUnloadEvent")

function createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent

パラメーター

eventInterface

"BeforeUnloadEvent"

返品

BeforeUnloadEvent

createEvent("BlobEvent")

function createEvent(eventInterface: "BlobEvent"): BlobEvent

パラメーター

eventInterface

"BlobEvent"

返品

BlobEvent

createEvent("ClipboardEvent")

function createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent

パラメーター

eventInterface

"ClipboardEvent"

返品

ClipboardEvent

createEvent("CloseEvent")

function createEvent(eventInterface: "CloseEvent"): CloseEvent

パラメーター

eventInterface

"CloseEvent"

返品

CloseEvent

createEvent("CompositionEvent")

function createEvent(eventInterface: "CompositionEvent"): CompositionEvent

パラメーター

eventInterface

"CompositionEvent"

返品

CompositionEvent

createEvent("ContentVisibilityAutoStateChangeEvent")

function createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent

パラメーター

eventInterface

"ContentVisibilityAutoStateChangeEvent"

返品

ContentVisibilityAutoStateChangeEvent

createEvent("CookieChangeEvent")

function createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent

パラメーター

eventInterface

"CookieChangeEvent"

返品

CookieChangeEvent

createEvent("CustomEvent")

function createEvent(eventInterface: "CustomEvent"): CustomEvent

パラメーター

eventInterface

"CustomEvent"

返品

CustomEvent

createEvent("DeviceMotionEvent")

function createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent

パラメーター

eventInterface

"DeviceMotionEvent"

返品

DeviceMotionEvent

createEvent("DeviceOrientationEvent")

function createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent

パラメーター

eventInterface

"DeviceOrientationEvent"

返品

DeviceOrientationEvent

createEvent("DragEvent")

function createEvent(eventInterface: "DragEvent"): DragEvent

パラメーター

eventInterface

"DragEvent"

返品

DragEvent

createEvent("ErrorEvent")

function createEvent(eventInterface: "ErrorEvent"): ErrorEvent

パラメーター

eventInterface

"ErrorEvent"

返品

ErrorEvent

createEvent("Event")

function createEvent(eventInterface: "Event"): Event

パラメーター

eventInterface

"Event"

返品

Event

createEvent("Events")

function createEvent(eventInterface: "Events"): Event

パラメーター

eventInterface

"Events"

返品

Event

createEvent("FocusEvent")

function createEvent(eventInterface: "FocusEvent"): FocusEvent

パラメーター

eventInterface

"FocusEvent"

返品

FocusEvent

createEvent("FontFaceSetLoadEvent")

function createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent

パラメーター

eventInterface

"FontFaceSetLoadEvent"

返品

FontFaceSetLoadEvent

createEvent("FormDataEvent")

function createEvent(eventInterface: "FormDataEvent"): FormDataEvent

パラメーター

eventInterface

"FormDataEvent"

返品

FormDataEvent

createEvent("GamepadEvent")

function createEvent(eventInterface: "GamepadEvent"): GamepadEvent

パラメーター

eventInterface

"GamepadEvent"

返品

GamepadEvent

createEvent("HashChangeEvent")

function createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent

パラメーター

eventInterface

"HashChangeEvent"

返品

HashChangeEvent

createEvent("IDBVersionChangeEvent")

function createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent

パラメーター

eventInterface

"IDBVersionChangeEvent"

返品

IDBVersionChangeEvent

createEvent("InputEvent")

function createEvent(eventInterface: "InputEvent"): InputEvent

パラメーター

eventInterface

"InputEvent"

返品

InputEvent

createEvent("KeyboardEvent")

function createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent

パラメーター

eventInterface

"KeyboardEvent"

返品

KeyboardEvent

createEvent("MediaEncryptedEvent")

function createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent

パラメーター

eventInterface

"MediaEncryptedEvent"

返品

MediaEncryptedEvent

createEvent("MediaKeyMessageEvent")

function createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent

パラメーター

eventInterface

"MediaKeyMessageEvent"

返品

MediaKeyMessageEvent

createEvent("MediaQueryListEvent")

function createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent

パラメーター

eventInterface

"MediaQueryListEvent"

返品

MediaQueryListEvent

createEvent("MediaStreamTrackEvent")

function createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent

パラメーター

eventInterface

"MediaStreamTrackEvent"

返品

MediaStreamTrackEvent

createEvent("MessageEvent")

function createEvent(eventInterface: "MessageEvent"): MessageEvent

パラメーター

eventInterface

"MessageEvent"

返品

MessageEvent

createEvent("MIDIConnectionEvent")

function createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent

パラメーター

eventInterface

"MIDIConnectionEvent"

返品

MIDIConnectionEvent

createEvent("MIDIMessageEvent")

function createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent

パラメーター

eventInterface

"MIDIMessageEvent"

返品

MIDIMessageEvent

createEvent("MouseEvent")

function createEvent(eventInterface: "MouseEvent"): MouseEvent

パラメーター

eventInterface

"MouseEvent"

返品

MouseEvent

createEvent("MouseEvents")

function createEvent(eventInterface: "MouseEvents"): MouseEvent

パラメーター

eventInterface

"MouseEvents"

返品

MouseEvent

createEvent("OfflineAudioCompletionEvent")

function createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent

パラメーター

eventInterface

"OfflineAudioCompletionEvent"

返品

OfflineAudioCompletionEvent

createEvent("PageRevealEvent")

function createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent

パラメーター

eventInterface

"PageRevealEvent"

返品

PageRevealEvent

createEvent("PageSwapEvent")

function createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent

パラメーター

eventInterface

"PageSwapEvent"

返品

PageSwapEvent

createEvent("PageTransitionEvent")

function createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent

パラメーター

eventInterface

"PageTransitionEvent"

返品

PageTransitionEvent

createEvent("PaymentMethodChangeEvent")

function createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent

パラメーター

eventInterface

"PaymentMethodChangeEvent"

返品

PaymentMethodChangeEvent

createEvent("PaymentRequestUpdateEvent")

function createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent

パラメーター

eventInterface

"PaymentRequestUpdateEvent"

返品

PaymentRequestUpdateEvent

createEvent("PictureInPictureEvent")

function createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent

パラメーター

eventInterface

"PictureInPictureEvent"

返品

PictureInPictureEvent

createEvent("PointerEvent")

function createEvent(eventInterface: "PointerEvent"): PointerEvent

パラメーター

eventInterface

"PointerEvent"

返品

PointerEvent

createEvent("PopStateEvent")

function createEvent(eventInterface: "PopStateEvent"): PopStateEvent

パラメーター

eventInterface

"PopStateEvent"

返品

PopStateEvent

createEvent("ProgressEvent")

function createEvent(eventInterface: "ProgressEvent"): ProgressEvent

パラメーター

eventInterface

"ProgressEvent"

返品

ProgressEvent

createEvent("PromiseRejectionEvent")

function createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent

パラメーター

eventInterface

"PromiseRejectionEvent"

返品

PromiseRejectionEvent

createEvent("RTCDataChannelEvent")

function createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent

パラメーター

eventInterface

"RTCDataChannelEvent"

返品

RTCDataChannelEvent

createEvent("RTCDTMFToneChangeEvent")

function createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent

パラメーター

eventInterface

"RTCDTMFToneChangeEvent"

返品

RTCDTMFToneChangeEvent

createEvent("RTCErrorEvent")

function createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent

パラメーター

eventInterface

"RTCErrorEvent"

返品

RTCErrorEvent

createEvent("RTCPeerConnectionIceErrorEvent")

function createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent

パラメーター

eventInterface

"RTCPeerConnectionIceErrorEvent"

返品

RTCPeerConnectionIceErrorEvent

createEvent("RTCPeerConnectionIceEvent")

function createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent

パラメーター

eventInterface

"RTCPeerConnectionIceEvent"

返品

RTCPeerConnectionIceEvent

createEvent("RTCTrackEvent")

function createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent

パラメーター

eventInterface

"RTCTrackEvent"

返品

RTCTrackEvent

createEvent("SecurityPolicyViolationEvent")

function createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent

パラメーター

eventInterface

"SecurityPolicyViolationEvent"

返品

SecurityPolicyViolationEvent

createEvent("SpeechSynthesisErrorEvent")

function createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent

パラメーター

eventInterface

"SpeechSynthesisErrorEvent"

返品

SpeechSynthesisErrorEvent

createEvent("SpeechSynthesisEvent")

function createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent

パラメーター

eventInterface

"SpeechSynthesisEvent"

返品

SpeechSynthesisEvent

createEvent("StorageEvent")

function createEvent(eventInterface: "StorageEvent"): StorageEvent

パラメーター

eventInterface

"StorageEvent"

返品

StorageEvent

createEvent("SubmitEvent")

function createEvent(eventInterface: "SubmitEvent"): SubmitEvent

パラメーター

eventInterface

"SubmitEvent"

返品

SubmitEvent

createEvent("TextEvent")

function createEvent(eventInterface: "TextEvent"): TextEvent

パラメーター

eventInterface

"TextEvent"

返品

TextEvent

createEvent("ToggleEvent")

function createEvent(eventInterface: "ToggleEvent"): ToggleEvent

パラメーター

eventInterface

"ToggleEvent"

返品

ToggleEvent

createEvent("TouchEvent")

function createEvent(eventInterface: "TouchEvent"): TouchEvent

パラメーター

eventInterface

"TouchEvent"

返品

TouchEvent

createEvent("TrackEvent")

function createEvent(eventInterface: "TrackEvent"): TrackEvent

パラメーター

eventInterface

"TrackEvent"

返品

TrackEvent

createEvent("TransitionEvent")

function createEvent(eventInterface: "TransitionEvent"): TransitionEvent

パラメーター

eventInterface

"TransitionEvent"

返品

TransitionEvent

createEvent("UIEvent")

function createEvent(eventInterface: "UIEvent"): UIEvent

パラメーター

eventInterface

"UIEvent"

返品

UIEvent

createEvent("UIEvents")

function createEvent(eventInterface: "UIEvents"): UIEvent

パラメーター

eventInterface

"UIEvents"

返品

UIEvent

createEvent("WebGLContextEvent")

function createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent

パラメーター

eventInterface

"WebGLContextEvent"

返品

WebGLContextEvent

createEvent("WheelEvent")

function createEvent(eventInterface: "WheelEvent"): WheelEvent

パラメーター

eventInterface

"WheelEvent"

返品

WheelEvent

createEvent(string)

function createEvent(eventInterface: string): Event

パラメーター

eventInterface

string

返品

Event

createNodeIterator(Node, number, NodeFilter | null)

Document.createNodeIterator() メソッドは、新しいNodeIterator オブジェクトを返します。

MDN リファレンス

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

パラメーター

root

Node

whatToShow

number

filter

NodeFilter | null

返品

NodeIterator

createProcessingInstruction(string, string)

createProcessingInstruction() は新しい処理命令ノードを生成し、それを返します。

MDN リファレンス

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

パラメーター

target

string

data

string

返品

ProcessingInstruction

createRange()

Document.createRange() メソッドは、新しい js-nolint createRange() None を返します。

MDN リファレンス

function createRange(): Range

返品

Range

createTextNode(string)

新しいテキスト ノードを作成します。

MDN リファレンス

function createTextNode(data: string): Text

パラメーター

data

string

返品

Text

createTreeWalker(Node, number, NodeFilter | null)

Document.createTreeWalker() creator メソッドは、新しく作成された TreeWalker オブジェクトを返します。

MDN リファレンス

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

パラメーター

root

Node

whatToShow

number

filter

NodeFilter | null

返品

TreeWalker

execCommand(string, boolean, string)

警告

この API は非推奨になりました。

MDN Reference

execCommand メソッドは、複数の異なるコマンドを実装します。

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

パラメーター

commandId

string

showUI

boolean

value

string

返品

boolean

exitFullscreen()

Document メソッド exitFullscreen() 、現在全画面表示モードで表示されているこのドキュメントの要素を全画面表示モードから外し、画面の以前の状態を復元することを要求します。

MDN リファレンス

function exitFullscreen(): Promise<void>

返品

Promise<void>

exitPictureInPicture()

Document インターフェイスの exitPictureInPicture() メソッドは、現在フローティング状態のこのドキュメントに含まれるビデオをピクチャインピクチャ モードから取り出し、画面の以前の状態を復元することを要求します。

MDN リファレンス

function exitPictureInPicture(): Promise<void>

返品

Promise<void>

exitPointerLock()

Document インターフェイスの exitPointerLock() メソッドは、Element.requestPointerLock を介して以前に要求されたポインター ロックを非同期的に解放します。

MDN リファレンス

function exitPointerLock()

getElementById(string)

ID が elementId であるノードの子孫内の最初の要素を返します。

MDN リファレンス

function getElementById(elementId: string): HTMLElement | null

パラメーター

elementId

string

返品

HTMLElement | null

getElementsByClassName(string)

指定されたすべてのクラス名を持つすべての子要素の getElementsByClassName メソッド。

MDN リファレンス

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

パラメーター

classNames

string

返品

HTMLCollectionOf<Element>

getElementsByName(string)

Document オブジェクトの getElementsByName() メソッドは、ドキュメント内の特定の name 属性を持つ要素の NodeList コレクションを返します。

MDN リファレンス

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

パラメーター

elementName

string

返品

NodeListOf<HTMLElement>

getElementsByTagName(string)

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

パラメーター

qualifiedName

string

返品

HTMLCollectionOf<Element>

getElementsByTagName<K>(K)

ルート ノードを含む、完全なドキュメントの getElementsByTagName メソッドが検索されます。

MDN リファレンス

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

パラメーター

qualifiedName

K

返品

HTMLCollectionOf<HTMLElementTagNameMap[K]>

getElementsByTagName<K>(K)

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

パラメーター

qualifiedName

K

返品

HTMLCollectionOf<SVGElementTagNameMap[K]>

getElementsByTagName<K>(K)

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

パラメーター

qualifiedName

K

返品

HTMLCollectionOf<MathMLElementTagNameMap[K]>

getElementsByTagName<K>(K)

警告

この API は非推奨になりました。

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

パラメーター

qualifiedName

K

返品

HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>

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

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

パラメーター

namespaceURI

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

localName

string

返品

HTMLCollectionOf<MathMLElement>

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

指定された名前空間に属する特定のタグ名を持つ要素の一覧を返します。

MDN リファレンス

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

パラメーター

namespaceURI

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

localName

string

返品

HTMLCollectionOf<HTMLElement>

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

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

パラメーター

namespaceURI

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

localName

string

返品

HTMLCollectionOf<SVGElement>

getElementsByTagNameNS(string | null, string)

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

パラメーター

namespace

string | null

localName

string

返品

HTMLCollectionOf<Element>

getSelection()

Document インターフェイスの getSelection() メソッドは、ユーザーが選択したテキストの範囲またはキャレットの現在位置を表す、このドキュメントに関連付けられた Selection オブジェクトを返します。

MDN リファレンス

function getSelection(): Selection | null

返品

Selection | null

hasFocus()

ドキュメント インターフェイスの hasFocus() メソッドは、ドキュメントまたはドキュメント内の任意の要素にフォーカスがあるかどうかを示すブール値を返します。

MDN リファレンス

function hasFocus(): boolean

返品

boolean

hasStorageAccess()

Document インターフェイスの hasStorageAccess() メソッドは、ドキュメントがサードパーティの未パーティション Cookie にアクセスできるかどうかを示すブール値で解決される Promise を返します。

MDN リファレンス

function hasStorageAccess(): Promise<boolean>

返品

Promise<boolean>

importNode<T>(T, boolean | ImportNodeOptions)

Document オブジェクトの importNode() メソッドは、後で現在のドキュメントに挿入されたコピーを作成します。

MDN リファレンス

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

パラメーター

node

T

options

boolean | ImportNodeOptions

返品

T

open(string | URL, string, string)

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

パラメーター

url

string | URL

name

string

features

string

返品

Window | null

open(string, string)

Document.open()メソッドは、これがいくつかの副作用を伴うドキュメントを開きます。

MDN リファレンス

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

パラメーター

unused1

string

unused2

string

返品

queryCommandEnabled(string)

警告

この API は非推奨になりました。

MDN Reference

Document.queryCommandEnabled() メソッドは、指定したエディター コマンドがブラウザーで有効になっているかどうかを報告します。

function queryCommandEnabled(commandId: string): boolean

パラメーター

commandId

string

返品

boolean

queryCommandIndeterm(string)

警告

この API は非推奨になりました。

function queryCommandIndeterm(commandId: string): boolean

パラメーター

commandId

string

返品

boolean

queryCommandState(string)

警告

この API は非推奨になりました。

MDN Reference

queryCommandState() メソッドは、現在の選択範囲に特定の Document.execCommand() コマンドが適用されているかどうかを示します。

function queryCommandState(commandId: string): boolean

パラメーター

commandId

string

返品

boolean

queryCommandSupported(string)

警告

この API は非推奨になりました。

MDN Reference

Document.queryCommandSupported() メソッドは、指定したエディター コマンドがブラウザーでサポートされているかどうかを報告します。

function queryCommandSupported(commandId: string): boolean

パラメーター

commandId

string

返品

boolean

queryCommandValue(string)

警告

この API は非推奨になりました。

function queryCommandValue(commandId: string): string

パラメーター

commandId

string

返品

string

releaseEvents()

警告

この API は非推奨になりました。

function releaseEvents()

removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)

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

パラメーター

type

string

listener

EventListenerOrEventListenerObject

options

boolean | EventListenerOptions

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

EventTarget インターフェイスの removeEventListener() メソッドは、以前に EventTarget.addEventListener() に登録されたイベント リスナーをターゲットから削除します。

MDN リファレンス

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

パラメーター

type

K

listener

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

options

boolean | EventListenerOptions

requestStorageAccess()

Document インターフェイスの requestStorageAccess() メソッドを使用すると、サード パーティのコンテキスト (iframe に埋め込まれている) に読み込まれたコンテンツで、サード パーティの Cookie とパーティション分割されていない状態へのアクセスを要求できます。

MDN リファレンス

function requestStorageAccess(): Promise<void>

返品

Promise<void>

startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)

Document インターフェイスの startViewTransition() メソッドは、新しい同じドキュメント (SPA) ビュー遷移を開始し、それを表す ViewTransition オブジェクトを返します。

MDN リファレンス

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

パラメーター

callbackOptions

ViewTransitionUpdateCallback | StartViewTransitionOptions

返品

ViewTransition

write(string[])

警告

この API は非推奨になりました。

MDN Reference

Document インターフェイスの write() メソッドは、1 つ以上の TrustedHTML パラメーターまたは文字列パラメーターのテキストを、document.open() によって開かれたドキュメント ストリームに書き込みます。

function write(text: string[])

パラメーター

text

string[]

writeln(string[])

Document インターフェイスの writeln() メソッドは、1 つ以上の TrustedHTML または文字列パラメーターのテキストを、document.open() によって開かれたドキュメント ストリームに書き込み、続けて改行文字を書き込みます。

MDN リファレンス

function writeln(text: string[])

パラメーター

text

string[]

継承済みメソッドの詳細

append((string | Node)[])

ノードの最後の子の後にノードを挿入し、ノード内の文字列を同等のテキスト ノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

MDN リファレンス

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

パラメーター

nodes

(string | Node)[]

ParentNode.append から継承

appendChild<T>(T)

Node インターフェイスの appendChild() メソッドは、指定した親ノードの子の一覧の末尾にノードを追加します。

MDN リファレンス

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

パラメーター

node

T

返品

T

node.appendChild から継承

cloneNode(boolean)

Node インターフェイスの cloneNode() メソッドは、このメソッドが呼び出されたノードの複製を返します。

MDN リファレンス

function cloneNode(subtree?: boolean): Node

パラメーター

subtree

boolean

返品

Node

Node.cloneNode から継承された

compareDocumentPosition(Node)

Node インターフェイスの compareDocumentPosition() メソッドは、呼び出されたノードを基準にして、引数ノードの位置を報告します。

MDN リファレンス

function compareDocumentPosition(other: Node): number

パラメーター

other

Node

返品

number

Node.compareDocumentPosition から継承された

contains(Node | null)

Node インターフェイスの contains() メソッドは、ノードが特定のノードの子孫であるかどうか、つまりノード自体、その直接の子 (Node.childNodes)、子の直接の子の 1 つであるかどうかを示すブール値を返します。

MDN リファレンス

function contains(other: Node | null): boolean

パラメーター

other

Node | null

返品

boolean

Node.contains から継承された

createExpression(string, XPathNSResolver | null)

MDN リファレンス

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

パラメーター

expression

string

resolver

XPathNSResolver | null

返品

XPathExpression

XPathEvaluatorBase.createExpression から継承

createNSResolver(Node)

警告

この API は非推奨になりました。

MDN Reference

function createNSResolver(nodeResolver: Node): Node

パラメーター

nodeResolver

Node

返品

Node

XPathEvaluatorBase.createNSResolver 継承された

dispatchEvent(Event)

EventTarget の dispatchEvent() メソッドは、イベントをオブジェクトに送信し、(同期的に) 影響を受けるイベント リスナーを適切な順序で呼び出します。

MDN リファレンス

function dispatchEvent(event: Event): boolean

パラメーター

event

Event

返品

boolean

Node.dispatchEvent から継承された

elementFromPoint(number, number)

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

パラメーター

x

number

y

number

返品

Element | null

継承されたドキュメント DocumentOrShadowRoot.elementFromPoint

elementsFromPoint(number, number)

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

パラメーター

x

number

y

number

返品

Element[]

documentOrShadowRoot.elementsFromPoint から継承

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

MDN リファレンス

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

パラメーター

expression

string

contextNode

Node

resolver

XPathNSResolver | null

type

number

result

XPathResult | null

返品

XPathResult

XPathEvaluatorBase.evaluate から継承

getAnimations()

MDN リファレンス

function getAnimations(): Animation[]

返品

Animation[]

DocumentOrShadowRoot.getAnimations から継承された

getRootNode(GetRootNodeOptions)

Node インターフェイスの getRootNode() メソッドは、コンテキスト オブジェクトのルートを返します。このルートには、シャドウ ルート (使用可能な場合) が必要に応じて含まれます。

MDN リファレンス

function getRootNode(options?: GetRootNodeOptions): Node

パラメーター

options

GetRootNodeOptions

返品

Node

Node.getRootNode から継承された

hasChildNodes()

Node インターフェイスの hasChildNodes() メソッドは、指定されたノードに子ノードがあるかどうかを示すブール値を返します。

MDN リファレンス

function hasChildNodes(): boolean

返品

boolean

ノードから継承.hasChildNodes

insertBefore<T>(T, Node | null)

Node インターフェイスの insertBefore() メソッドは、指定された親ノードの子として 、参照ノード の前にノードを挿入 します。

MDN リファレンス

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

パラメーター

node

T

child

Node | null

返品

T

node.insertBefore から継承

isDefaultNamespace(string | null)

Node インターフェイスの isDefaultNamespace() メソッドは、名前空間 URI を引数として受け入れます。

MDN リファレンス

function isDefaultNamespace(namespace: string | null): boolean

パラメーター

namespace

string | null

返品

boolean

Node.isDefaultNamespace から継承された

isEqualNode(Node | null)

Node インターフェイスの isEqualNode() メソッドは、2 つのノードが等しいかどうかをテストします。

MDN リファレンス

function isEqualNode(otherNode: Node | null): boolean

パラメーター

otherNode

Node | null

返品

boolean

Node.isEqualNode から継承された

isSameNode(Node | null)

Node インターフェイスの isSameNode() メソッドは、厳密な等値演算子 === レガシ エイリアスです。

MDN リファレンス

function isSameNode(otherNode: Node | null): boolean

パラメーター

otherNode

Node | null

返品

boolean

Node.isSameNode から継承された

lookupNamespaceURI(string | null)

Node インターフェイスの lookupNamespaceURI() メソッドは、プレフィックスをパラメーターとして受け取り、特定のノードで関連付けられている名前空間 URI を返します (見つからない場合は null )。

MDN リファレンス

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

パラメーター

prefix

string | null

返品

string | null

node.lookupNamespaceURI から継承

lookupPrefix(string | null)

Node インターフェイスの lookupPrefix() メソッドは、特定の名前空間 URI のプレフィックスを含む文字列を返します (存在する場合)。存在しない場合は null 。

MDN リファレンス

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

パラメーター

namespace

string | null

返品

string | null

Node.lookupPrefix から継承された

normalize()

Node インターフェイスの normalize() メソッドは、指定されたノードとそのすべてのサブツリーを 正規化された 形式に配置します。

MDN リファレンス

function normalize()

Node.normalize から継承された

prepend((string | Node)[])

ノード内の文字列を同等の Text ノードに置き換えながら、ノードの最初の子の前にノードを挿入します。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

MDN リファレンス

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

パラメーター

nodes

(string | Node)[]

parentNode.prepend から継承

querySelector<E>(string)

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

パラメーター

selectors

string

返品

E | null

ParentNode.querySelector から継承

querySelector<K>(K)

セレクターに一致するノードの子孫である最初の要素を返します。

MDN リファレンス

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

パラメーター

selectors

K

返品

HTMLElementTagNameMap[K] | null

ParentNode.querySelector から継承

querySelector<K>(K)

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

パラメーター

selectors

K

返品

SVGElementTagNameMap[K] | null

ParentNode.querySelector から継承

querySelector<K>(K)

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

パラメーター

selectors

K

返品

MathMLElementTagNameMap[K] | null

ParentNode.querySelector から継承

querySelector<K>(K)

警告

この API は非推奨になりました。

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

パラメーター

selectors

K

返品

HTMLElementDeprecatedTagNameMap[K] | null

ParentNode.querySelector から継承

querySelectorAll<E>(string)

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

パラメーター

selectors

string

返品

NodeListOf<E>

parentNode.querySelectorAll から継承

querySelectorAll<K>(K)

セレクターに一致するノードのすべての要素の子孫を返します。

MDN リファレンス

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

パラメーター

selectors

K

返品

NodeListOf<HTMLElementTagNameMap[K]>

parentNode.querySelectorAll から継承

querySelectorAll<K>(K)

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

パラメーター

selectors

K

返品

NodeListOf<SVGElementTagNameMap[K]>

parentNode.querySelectorAll から継承

querySelectorAll<K>(K)

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

パラメーター

selectors

K

返品

NodeListOf<MathMLElementTagNameMap[K]>

parentNode.querySelectorAll から継承

querySelectorAll<K>(K)

警告

この API は非推奨になりました。

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

パラメーター

selectors

K

返品

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

parentNode.querySelectorAll から継承

removeChild<T>(T)

Node インターフェイスの removeChild() メソッドは、DOM から子ノードを削除し、削除されたノードを返します。

MDN リファレンス

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

パラメーター

child

T

返品

T

node.removeChild から継承

replaceChild<T>(Node, T)

Node インターフェイスの replaceChild() メソッドは、指定された (親) ノード内の子ノードを置き換えます。

MDN リファレンス

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

パラメーター

node

Node

child

T

返品

T

Node.replaceChild から継承された

replaceChildren((string | Node)[])

ノード内の文字列を同等のテキスト ノードに置き換えながら、ノードのすべての子をノードに置き換えます。

ノード ツリーの制約に違反した場合は、"HierarchyRequestError" DOMException をスローします。

MDN リファレンス

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

パラメーター

nodes

(string | Node)[]

parentNode.replaceChildren から継承