Window interface

Window インターフェイスは、DOM ドキュメントを含むウィンドウを表します。document プロパティは、そのウィンドウに読み込まれた DOM ドキュメントを指します。

MDN リファレンス

Extends

EventTarget,AnimationFrameProvider,GlobalEventHandlers,WindowEventHandlers,WindowLocalStorage,WindowOrWorkerGlobalScope,WindowSessionStorage

プロパティ

clientInformation
closed

Window.closed読み取り専用プロパティは、参照されるウィンドウが閉じているかどうかを示します。

MDN リファレンス

cookieStore

Window インターフェイスの cookieStore 読み取り専用プロパティは、現在のドキュメント コンテキストの CookieStore オブジェクトへの参照を返します。

MDN リファレンス

customElements

Window インターフェイスの customElements 読み取り専用プロパティは、CustomElementRegistry オブジェクトへの参照を返します。これは、新しいカスタム要素を登録し、以前に登録されたカスタム要素に関する情報を取得するために使用できます。

MDN リファレンス

devicePixelRatio

Window インターフェイスの devicePixelRatio は、 物理ピクセル 単位の解像度と、現在のディスプレイ デバイスの CSS ピクセル単位 の解像度の比率を返します。

MDN リファレンス

document

window.document は、ウィンドウに含まれるドキュメントへの参照を返します。

MDN リファレンス

event

読み取り専用の Window プロパティ event は、サイトのコードによって現在処理されているイベントを返します。

external

Window API の external プロパティは、ブラウザーへの外部検索プロバイダーの追加に関連する関数を含む External インターフェイスのインスタンスを返します。

frameElement

Window.frameElement プロパティは、ウィンドウが埋め込まれている要素 (iframe やオブジェクトなど) を返します。

MDN リファレンス

frames

現在のウィンドウの直接サブフレームを一覧表示する、配列のようなオブジェクトであるウィンドウ自体を返します。

MDN リファレンス

history

Window.history読み取り専用プロパティは、履歴オブジェクトへの参照を返します。このオブジェクトは、ブラウザー セッション履歴 (現在のページが読み込まれているタブまたはフレーム内のページ) を操作するためのインターフェイスを提供します。

MDN リファレンス

innerHeight

水平スクロール バーの高さを含むプロパティの読み取り専用 innerHeight プロパティ (存在する場合)。

MDN リファレンス

innerWidth

読み取り専用の Window プロパティ innerWidth は、ウィンドウの内部の幅 (つまり、ウィンドウのレイアウト ビューポートの幅) をピクセル単位で返します。

MDN リファレンス

length

フレームの数 (フレームまたは A の数値) を返します。

MDN リファレンス

location

Window.location読み取り専用プロパティは、ドキュメントの現在の場所に関する情報を持つ Location オブジェクトを返します。

MDN リファレンス

locationbar

locationbar オブジェクトを返します。

MDN リファレンス

menubar

menubar オブジェクトを返します。

MDN リファレンス

msCrypto
name

Window.name プロパティは、ウィンドウの参照コンテキストの名前を取得/設定します。

MDN リファレンス

navigator

Window.navigator読み取り専用プロパティは、スクリプトを実行しているアプリケーションに関するメソッドとプロパティを持つ Navigator オブジェクトへの参照を返します。

MDN リファレンス

ondevicemotion

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

MDN リファレンス

ondeviceorientation

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

MDN リファレンス

ondeviceorientationabsolute

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

MDN リファレンス

onorientationchange
opener

Window インターフェイスの opener プロパティは、Window.open を使用するか、 target 属性を持つリンク内を移動することによって、ウィンドウを開いたウィンドウへの参照を返します。

MDN リファレンス

orientation

デバイスの自然な向きを基準にして、ビューポートの向きを度 (90 度単位) で返します。

originAgentCluster

Window インターフェイスのoriginAgentCluster読み取り専用プロパティは、このウィンドウが配信元キー付きエージェント クラスターに属している場合にtrueを返します。つまり、オペレーティング システムは、他の配信元からウィンドウと共有されていない、このウィンドウの配信元に専用リソース (オペレーティング システム プロセスなど) を提供したことを意味します。

MDN リファレンス

outerHeight

Window.outerHeight読み取り専用プロパティは、ブラウザー ウィンドウ全体の高さをピクセル単位で返します。これには、サイドバー、ウィンドウ クロム、ウィンドウサイズ変更の罫線/ハンドルが含まれます。

MDN リファレンス

outerWidth

Window.outerWidth 読み取り専用プロパティは、ブラウザー ウィンドウの外側の幅を返します。

MDN リファレンス

pageXOffset

MDN リファレンス

pageYOffset

MDN リファレンス

parent

Window.parent プロパティは、現在のウィンドウまたはサブフレームの親への参照です。

MDN リファレンス

personalbar

personalbar オブジェクトを返します。

MDN リファレンス

powerbi
powerBISDKGlobalServiceInstanceName
screen

Window プロパティ screen は、ウィンドウに関連付けられている画面オブジェクトへの参照を返します。

MDN リファレンス

screenLeft

Window.screenLeft読み取り専用プロパティは、ユーザーのブラウザー ビューポートの左境界線から画面の左側までの水平方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

screenTop

Window.screenTop読み取り専用プロパティは、ユーザーのブラウザー ビューポートの上端から画面の上端までの垂直方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

screenX

Window.screenX読み取り専用プロパティは、ユーザーのブラウザー ビューポートの左境界線から画面の左側までの水平方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

screenY

Window.screenY読み取り専用プロパティは、ユーザーのブラウザー ビューポートの上端から画面の上端までの垂直方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

scrollbars

scrollbars オブジェクトを返します。

MDN リファレンス

scrollX

Window インターフェイスの読み取り専用 scrollX プロパティは、ドキュメントが現在水平方向にスクロールされているピクセル数を返します。

MDN リファレンス

scrollY

Window インターフェイスの読み取り専用 scrollY プロパティは、ドキュメントが現在垂直方向にスクロールされているピクセル数を返します。

MDN リファレンス

self

Window.self読み取り専用プロパティは、ウィンドウ自体を WindowProxy として返します。

MDN リファレンス

speechSynthesis

Window オブジェクトの speechSynthesis 読み取り専用プロパティは、Web Speech API 音声合成機能を使用するためのエントリ ポイントである SpeechSynthesis オブジェクトを返します。

MDN リファレンス

status

ブラウザー ウィンドウの下部にあるバーの status プロパティ。

statusbar

statusbar オブジェクトを返します。

MDN リファレンス

toolbar

toolbar オブジェクトを返します。

MDN リファレンス

top

ウィンドウ階層内の一番上のウィンドウへの参照を返します。

MDN リファレンス

visualViewport

Window インターフェイスの visualViewport 読み取り専用プロパティは、特定のウィンドウのビジュアル ビューポートを表す VisualViewport オブジェクトを返します。現在のドキュメントが完全にアクティブでない場合は null します。

MDN リファレンス

window

Window オブジェクトの window プロパティは、ウィンドウ オブジェクト自体を指します。

MDN リファレンス

継承されたプロパティ

caches

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

MDN リファレンス

crossOriginIsolated

MDN リファレンス

crypto

MDN リファレンス

indexedDB

MDN リファレンス

isSecureContext

MDN リファレンス

localStorage

MDN リファレンス

onabort

MDN リファレンス

onafterprint

MDN リファレンス

onanimationcancel

MDN リファレンス

onanimationend

MDN リファレンス

onanimationiteration

MDN リファレンス

onanimationstart

MDN リファレンス

onauxclick

MDN リファレンス

onbeforeinput

MDN リファレンス

onbeforematch

MDN リファレンス

onbeforeprint

MDN リファレンス

onbeforetoggle

MDN リファレンス

onbeforeunload

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 リファレンス

ongamepadconnected

MDN リファレンス

ongamepaddisconnected

MDN リファレンス

ongotpointercapture

MDN リファレンス

onhashchange

MDN リファレンス

oninput

MDN リファレンス

oninvalid

MDN リファレンス

onkeydown

MDN リファレンス

onkeypress
onkeyup

MDN リファレンス

onlanguagechange

MDN リファレンス

onload

MDN リファレンス

onloadeddata

MDN リファレンス

onloadedmetadata

MDN リファレンス

onloadstart

MDN リファレンス

onlostpointercapture

MDN リファレンス

onmessage

MDN リファレンス

onmessageerror

MDN リファレンス

onmousedown

MDN リファレンス

onmouseenter

MDN リファレンス

onmouseleave

MDN リファレンス

onmousemove

MDN リファレンス

onmouseout

MDN リファレンス

onmouseover

MDN リファレンス

onmouseup

MDN リファレンス

onoffline

MDN リファレンス

ononline

MDN リファレンス

onpagehide

MDN リファレンス

onpagereveal

MDN リファレンス

onpageshow

MDN リファレンス

onpageswap

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 リファレンス

onpopstate

MDN リファレンス

onprogress

MDN リファレンス

onratechange

MDN リファレンス

onrejectionhandled

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 リファレンス

onstorage

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 リファレンス

onunhandledrejection

MDN リファレンス

onunload
onvolumechange

MDN リファレンス

onwaiting

MDN リファレンス

onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel

MDN リファレンス

origin

MDN リファレンス

performance

MDN リファレンス

sessionStorage

MDN リファレンス

メソッド

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

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

MDN リファレンス

alert(any)

window.alert() は、オプションのメッセージを含むダイアログを表示し、ユーザーがダイアログを閉じるまで待機するようにブラウザーに指示します。

MDN リファレンス

blur()

Window.blur() メソッドは何も行いません。

cancelIdleCallback(number)

window.cancelIdleCallback() メソッドは、window.requestIdleCallback() でスケジュールされたコールバックを取り消します。

MDN リファレンス

captureEvents()

Window.captureEvents() メソッドは何も行いません。

close()

Window.close() メソッドは、現在のウィンドウ、または呼び出されたウィンドウを閉じます。

MDN リファレンス

confirm(string)

window.confirm() は、オプションのメッセージを含むダイアログを表示し、ユーザーがダイアログを確認またはキャンセルするまで待機するようにブラウザーに指示します。

MDN リファレンス

focus()

ウィンドウを前面に移動するように要求します。

MDN リファレンス

getComputedStyle(Element, string | null)

Window.getComputedStyle()メソッドは、アクティブなスタイルシートを適用し、それらの値に含まれる基本的な計算を解決した後、要素のすべての CSS プロパティの値を含むオブジェクトを返します。

MDN リファレンス

getSelection()

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

MDN リファレンス

matchMedia(string)

Window インターフェイスの matchMedia() メソッドは、新しい MediaQueryList オブジェクトを返します。このオブジェクトを使用して、ドキュメントがメディア クエリ文字列と一致するかどうかを判断したり、そのメディア クエリに一致する (または一致を停止する) ことを検出するためにドキュメントを監視したりできます。

MDN リファレンス

moveBy(number, number)

Window インターフェイスの moveBy() メソッドは、現在のウィンドウを指定した量移動します。

MDN リファレンス

moveTo(number, number)

Window インターフェイスの moveTo() メソッドは、現在のウィンドウを指定した座標に移動します。

MDN リファレンス

open(string | URL, string, string)

Window インターフェイスのopen()メソッドは、指定した名前で、指定したリソースを新規または既存の参照コンテキスト (タブ、ウィンドウ、または iframe) に読み込みます。

MDN リファレンス

postMessage(any, string, Transferable[])

window.postMessage()メソッドは、Window オブジェクト間のクロスオリジン通信を安全に有効にします。たとえば、生成されたページとポップアップの間、またはページとその中に埋め込まれた iframe の間などです。

MDN リファレンス

postMessage(any, WindowPostMessageOptions)
print()

現在の文書を印刷する印刷ダイアログを開きます。

MDN リファレンス

prompt(string, string)

window.prompt() は、ユーザーにテキストの入力を求めるオプションのメッセージを含むダイアログを表示し、ユーザーがテキストを送信するか、ダイアログをキャンセルするまで待機するようにブラウザーに指示します。

MDN リファレンス

releaseEvents()

特定の種類のイベントのトラップからウィンドウを解放します。

removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
removeEventListener<K>(K, (this: Window, ev: WindowEventMap[K]) => any, boolean | EventListenerOptions)

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

MDN リファレンス

requestIdleCallback(IdleRequestCallback, IdleRequestOptions)

window.requestIdleCallback() メソッドは、ブラウザーのアイドル期間中に呼び出される関数をキューに入れます。

MDN リファレンス

resizeBy(number, number)

Window.resizeBy()メソッドは、現在のウィンドウのサイズを指定した量で変更します。

MDN リファレンス

resizeTo(number, number)

Window.resizeTo()メソッドは、ウィンドウのサイズを動的に変更します。

MDN リファレンス

scroll(number, number)
scroll(ScrollToOptions)

Window.scroll()メソッドは、ウィンドウを文書内の特定の場所までスクロールします。

MDN リファレンス

scrollBy(number, number)
scrollBy(ScrollToOptions)

Window.scrollBy()メソッドは、ウィンドウ内のドキュメントを指定された量ずつスクロールします。

MDN リファレンス

scrollTo(number, number)
scrollTo(ScrollToOptions)

Window.scrollTo() は、ドキュメント内の特定の座標セットまでスクロールします。

MDN リファレンス

stop()

window.stop()は、ブラウザーの停止ボタンと同等に、現在のブラウズ コンテキストでのリソースの読み込みを停止します。

MDN リファレンス

プロパティの詳細

clientInformation

警告

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

This is a legacy alias of navigator.

MDN Reference

clientInformation: Navigator

プロパティ値

Navigator

closed

Window.closed読み取り専用プロパティは、参照されるウィンドウが閉じているかどうかを示します。

MDN リファレンス

closed: boolean

プロパティ値

boolean

cookieStore

Window インターフェイスの cookieStore 読み取り専用プロパティは、現在のドキュメント コンテキストの CookieStore オブジェクトへの参照を返します。

MDN リファレンス

cookieStore: CookieStore

プロパティ値

CookieStore

customElements

Window インターフェイスの customElements 読み取り専用プロパティは、CustomElementRegistry オブジェクトへの参照を返します。これは、新しいカスタム要素を登録し、以前に登録されたカスタム要素に関する情報を取得するために使用できます。

MDN リファレンス

customElements: CustomElementRegistry

プロパティ値

CustomElementRegistry

devicePixelRatio

Window インターフェイスの devicePixelRatio は、 物理ピクセル 単位の解像度と、現在のディスプレイ デバイスの CSS ピクセル単位 の解像度の比率を返します。

MDN リファレンス

devicePixelRatio: number

プロパティ値

number

document

window.document は、ウィンドウに含まれるドキュメントへの参照を返します。

MDN リファレンス

document: Document

プロパティ値

event

警告

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

MDN Reference

読み取り専用の Window プロパティ event は、サイトのコードによって現在処理されているイベントを返します。

event: Event | undefined

プロパティ値

Event | undefined

external

警告

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

MDN Reference

Window API の external プロパティは、ブラウザーへの外部検索プロバイダーの追加に関連する関数を含む External インターフェイスのインスタンスを返します。

external: External

プロパティ値

External

frameElement

Window.frameElement プロパティは、ウィンドウが埋め込まれている要素 (iframe やオブジェクトなど) を返します。

MDN リファレンス

frameElement: Element | null

プロパティ値

Element | null

frames

現在のウィンドウの直接サブフレームを一覧表示する、配列のようなオブジェクトであるウィンドウ自体を返します。

MDN リファレンス

frames: Window

プロパティ値

history

Window.history読み取り専用プロパティは、履歴オブジェクトへの参照を返します。このオブジェクトは、ブラウザー セッション履歴 (現在のページが読み込まれているタブまたはフレーム内のページ) を操作するためのインターフェイスを提供します。

MDN リファレンス

history: History

プロパティ値

History

innerHeight

水平スクロール バーの高さを含むプロパティの読み取り専用 innerHeight プロパティ (存在する場合)。

MDN リファレンス

innerHeight: number

プロパティ値

number

innerWidth

読み取り専用の Window プロパティ innerWidth は、ウィンドウの内部の幅 (つまり、ウィンドウのレイアウト ビューポートの幅) をピクセル単位で返します。

MDN リファレンス

innerWidth: number

プロパティ値

number

length

フレームの数 (フレームまたは A の数値) を返します。

MDN リファレンス

length: number

プロパティ値

number

location

Window.location読み取り専用プロパティは、ドキュメントの現在の場所に関する情報を持つ Location オブジェクトを返します。

MDN リファレンス

Location location

プロパティ値

Location

locationbar

locationbar オブジェクトを返します。

MDN リファレンス

locationbar: BarProp

プロパティ値

BarProp

menubar

menubar オブジェクトを返します。

MDN リファレンス

menubar: BarProp

プロパティ値

BarProp

msCrypto

msCrypto: Crypto

プロパティ値

Crypto

name

Window.name プロパティは、ウィンドウの参照コンテキストの名前を取得/設定します。

MDN リファレンス

name: string

プロパティ値

string

navigator

Window.navigator読み取り専用プロパティは、スクリプトを実行しているアプリケーションに関するメソッドとプロパティを持つ Navigator オブジェクトへの参照を返します。

MDN リファレンス

navigator: Navigator

プロパティ値

Navigator

ondevicemotion

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

MDN リファレンス

ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any | null

プロパティ値

(this: Window, ev: DeviceMotionEvent) => any | null

ondeviceorientation

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

MDN リファレンス

ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any | null

プロパティ値

(this: Window, ev: DeviceOrientationEvent) => any | null

ondeviceorientationabsolute

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

MDN リファレンス

ondeviceorientationabsolute: (this: Window, ev: DeviceOrientationEvent) => any | null

プロパティ値

(this: Window, ev: DeviceOrientationEvent) => any | null

onorientationchange

警告

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

MDN Reference

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

プロパティ値

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

opener

Window インターフェイスの opener プロパティは、Window.open を使用するか、 target 属性を持つリンク内を移動することによって、ウィンドウを開いたウィンドウへの参照を返します。

MDN リファレンス

opener: any

プロパティ値

any

orientation

警告

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

MDN Reference

デバイスの自然な向きを基準にして、ビューポートの向きを度 (90 度単位) で返します。

orientation: number

プロパティ値

number

originAgentCluster

Window インターフェイスのoriginAgentCluster読み取り専用プロパティは、このウィンドウが配信元キー付きエージェント クラスターに属している場合にtrueを返します。つまり、オペレーティング システムは、他の配信元からウィンドウと共有されていない、このウィンドウの配信元に専用リソース (オペレーティング システム プロセスなど) を提供したことを意味します。

MDN リファレンス

originAgentCluster: boolean

プロパティ値

boolean

outerHeight

Window.outerHeight読み取り専用プロパティは、ブラウザー ウィンドウ全体の高さをピクセル単位で返します。これには、サイドバー、ウィンドウ クロム、ウィンドウサイズ変更の罫線/ハンドルが含まれます。

MDN リファレンス

outerHeight: number

プロパティ値

number

outerWidth

Window.outerWidth 読み取り専用プロパティは、ブラウザー ウィンドウの外側の幅を返します。

MDN リファレンス

outerWidth: number

プロパティ値

number

pageXOffset

MDN リファレンス

pageXOffset: number

プロパティ値

number

pageYOffset

MDN リファレンス

pageYOffset: number

プロパティ値

number

parent

Window.parent プロパティは、現在のウィンドウまたはサブフレームの親への参照です。

MDN リファレンス

parent: Window

プロパティ値

personalbar

personalbar オブジェクトを返します。

MDN リファレンス

personalbar: BarProp

プロパティ値

BarProp

powerbi

powerbi: Service

プロパティ値

powerBISDKGlobalServiceInstanceName

powerBISDKGlobalServiceInstanceName?: string

プロパティ値

string

screen

Window プロパティ screen は、ウィンドウに関連付けられている画面オブジェクトへの参照を返します。

MDN リファレンス

screen: Screen

プロパティ値

Screen

screenLeft

Window.screenLeft読み取り専用プロパティは、ユーザーのブラウザー ビューポートの左境界線から画面の左側までの水平方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

screenLeft: number

プロパティ値

number

screenTop

Window.screenTop読み取り専用プロパティは、ユーザーのブラウザー ビューポートの上端から画面の上端までの垂直方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

screenTop: number

プロパティ値

number

screenX

Window.screenX読み取り専用プロパティは、ユーザーのブラウザー ビューポートの左境界線から画面の左側までの水平方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

screenX: number

プロパティ値

number

screenY

Window.screenY読み取り専用プロパティは、ユーザーのブラウザー ビューポートの上端から画面の上端までの垂直方向の距離を CSS ピクセル単位で返します。

MDN リファレンス

screenY: number

プロパティ値

number

scrollbars

scrollbars オブジェクトを返します。

MDN リファレンス

scrollbars: BarProp

プロパティ値

BarProp

scrollX

Window インターフェイスの読み取り専用 scrollX プロパティは、ドキュメントが現在水平方向にスクロールされているピクセル数を返します。

MDN リファレンス

scrollX: number

プロパティ値

number

scrollY

Window インターフェイスの読み取り専用 scrollY プロパティは、ドキュメントが現在垂直方向にスクロールされているピクセル数を返します。

MDN リファレンス

scrollY: number

プロパティ値

number

self

Window.self読み取り専用プロパティは、ウィンドウ自体を WindowProxy として返します。

MDN リファレンス

self: Window & typeof globalThis

プロパティ値

Window & typeof globalThis

speechSynthesis

Window オブジェクトの speechSynthesis 読み取り専用プロパティは、Web Speech API 音声合成機能を使用するためのエントリ ポイントである SpeechSynthesis オブジェクトを返します。

MDN リファレンス

speechSynthesis: SpeechSynthesis

プロパティ値

SpeechSynthesis

status

警告

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

MDN Reference

ブラウザー ウィンドウの下部にあるバーの status プロパティ。

status: string

プロパティ値

string

statusbar

statusbar オブジェクトを返します。

MDN リファレンス

statusbar: BarProp

プロパティ値

BarProp

toolbar

toolbar オブジェクトを返します。

MDN リファレンス

toolbar: BarProp

プロパティ値

BarProp

top

ウィンドウ階層内の一番上のウィンドウへの参照を返します。

MDN リファレンス

top: Window | null

プロパティ値

Window | null

visualViewport

Window インターフェイスの visualViewport 読み取り専用プロパティは、特定のウィンドウのビジュアル ビューポートを表す VisualViewport オブジェクトを返します。現在のドキュメントが完全にアクティブでない場合は null します。

MDN リファレンス

visualViewport: VisualViewport | null

プロパティ値

VisualViewport | null

window

Window オブジェクトの window プロパティは、ウィンドウ オブジェクト自体を指します。

MDN リファレンス

window: Window & typeof globalThis

プロパティ値

Window & typeof globalThis

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

caches

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

MDN リファレンス

caches: CacheStorage

プロパティ値

CacheStorage

WindowOrWorkerGlobalScope.caches から継承された

crossOriginIsolated

MDN リファレンス

crossOriginIsolated: boolean

プロパティ値

boolean

WindowOrWorkerGlobalScope.crossOriginIsolated から継承された

crypto

MDN リファレンス

crypto: Crypto

プロパティ値

Crypto

WindowOrWorkerGlobalScope.crypto から継承された

indexedDB

MDN リファレンス

indexedDB: IDBFactory

プロパティ値

IDBFactory

WindowOrWorkerGlobalScope.indexedDB から継承されます

isSecureContext

MDN リファレンス

isSecureContext: boolean

プロパティ値

boolean

WindowOrWorkerGlobalScope.isSecureContext から継承された

localStorage

MDN リファレンス

localStorage: Storage

プロパティ値

Storage

windowLocalStorage.localStorage から継承

onabort

MDN リファレンス

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

プロパティ値

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

GlobalEventHandlers.onabort から継承された

onafterprint

MDN リファレンス

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

プロパティ値

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

WindowEventHandlers.onafterprint から継承された

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

onbeforeprint

MDN リファレンス

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

プロパティ値

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

WindowEventHandlers.onbeforeprint から継承された

onbeforetoggle

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.onbeforetoggle

onbeforeunload

MDN リファレンス

onbeforeunload: (this: WindowEventHandlers, ev: BeforeUnloadEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: BeforeUnloadEvent) => any | null

WindowEventHandlers.onbeforeunload から継承された

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 から継承された

ongamepadconnected

MDN リファレンス

ongamepadconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: GamepadEvent) => any | null

WindowEventHandlers.ongamepadconnected から継承されます

ongamepaddisconnected

MDN リファレンス

ongamepaddisconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: GamepadEvent) => any | null

WindowEventHandlers.ongamepaddisconnected から継承された

ongotpointercapture

MDN リファレンス

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

プロパティ値

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

Inherited From GlobalEventHandlers.ongotpointercapture

onhashchange

MDN リファレンス

onhashchange: (this: WindowEventHandlers, ev: HashChangeEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: HashChangeEvent) => any | null

WindowEventHandlers.onhashchange から継承された

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 から継承された

onlanguagechange

MDN リファレンス

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

プロパティ値

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

WindowEventHandlers.onlanguagechange から継承された

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

onmessage

MDN リファレンス

onmessage: (this: WindowEventHandlers, ev: MessageEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: MessageEvent) => any | null

WindowEventHandlers.onmessage から継承された

onmessageerror

MDN リファレンス

onmessageerror: (this: WindowEventHandlers, ev: MessageEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: MessageEvent) => any | null

WindowEventHandlers.onmessageerror から継承された

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 から継承された

onoffline

MDN リファレンス

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

プロパティ値

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

WindowEventHandlers.onoffline から継承された

ononline

MDN リファレンス

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

プロパティ値

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

WindowEventHandlers.ononline から継承された

onpagehide

MDN リファレンス

onpagehide: (this: WindowEventHandlers, ev: PageTransitionEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: PageTransitionEvent) => any | null

WindowEventHandlers.onpagehide から継承された

onpagereveal

MDN リファレンス

onpagereveal: (this: WindowEventHandlers, ev: PageRevealEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: PageRevealEvent) => any | null

Inherited From WindowEventHandlers.onpagereveal

onpageshow

MDN リファレンス

onpageshow: (this: WindowEventHandlers, ev: PageTransitionEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: PageTransitionEvent) => any | null

WindowEventHandlers.onpageshow から継承された

onpageswap

MDN リファレンス

onpageswap: (this: WindowEventHandlers, ev: PageSwapEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: PageSwapEvent) => any | null

Inherited From WindowEventHandlers.onpageswap

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 から継承された

onpopstate

MDN リファレンス

onpopstate: (this: WindowEventHandlers, ev: PopStateEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: PopStateEvent) => any | null

WindowEventHandlers.onpopstate から継承された

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 から継承された

onrejectionhandled

MDN リファレンス

onrejectionhandled: (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null

WindowEventHandlers.onrejectionhandled から継承された

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 から継承された

onstorage

MDN リファレンス

onstorage: (this: WindowEventHandlers, ev: StorageEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: StorageEvent) => any | null

WindowEventHandlers.onstorage から継承された

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 から継承

onunhandledrejection

MDN リファレンス

onunhandledrejection: (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null

プロパティ値

(this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null

WindowEventHandlers.onunhandledrejection から継承された

onunload

警告

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

MDN Reference

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

プロパティ値

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

WindowEventHandlers.onunload から継承された

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 から継承された

origin

MDN リファレンス

origin: string

プロパティ値

string

WindowOrWorkerGlobalScope.origin から継承された

performance

MDN リファレンス

performance: Performance

プロパティ値

Performance

WindowOrWorkerGlobalScope.performance から継承された

sessionStorage

MDN リファレンス

sessionStorage: Storage

プロパティ値

Storage

WindowSessionStorage.sessionStorage から継承された

メソッドの詳細

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: Window, ev: WindowEventMap[K]) => any, boolean | AddEventListenerOptions)

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

MDN リファレンス

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

パラメーター

type

K

listener

(this: Window, ev: WindowEventMap[K]) => any

options

boolean | AddEventListenerOptions

alert(any)

window.alert() は、オプションのメッセージを含むダイアログを表示し、ユーザーがダイアログを閉じるまで待機するようにブラウザーに指示します。

MDN リファレンス

function alert(message?: any)

パラメーター

message

any

blur()

警告

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

MDN Reference

Window.blur() メソッドは何も行いません。

function blur()

cancelIdleCallback(number)

window.cancelIdleCallback() メソッドは、window.requestIdleCallback() でスケジュールされたコールバックを取り消します。

MDN リファレンス

function cancelIdleCallback(handle: number)

パラメーター

handle

number

captureEvents()

警告

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

MDN Reference

Window.captureEvents() メソッドは何も行いません。

function captureEvents()

close()

Window.close() メソッドは、現在のウィンドウ、または呼び出されたウィンドウを閉じます。

MDN リファレンス

function close()

confirm(string)

window.confirm() は、オプションのメッセージを含むダイアログを表示し、ユーザーがダイアログを確認またはキャンセルするまで待機するようにブラウザーに指示します。

MDN リファレンス

function confirm(message?: string): boolean

パラメーター

message

string

返品

boolean

focus()

ウィンドウを前面に移動するように要求します。

MDN リファレンス

function focus()

getComputedStyle(Element, string | null)

Window.getComputedStyle()メソッドは、アクティブなスタイルシートを適用し、それらの値に含まれる基本的な計算を解決した後、要素のすべての CSS プロパティの値を含むオブジェクトを返します。

MDN リファレンス

function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration

パラメーター

elt

Element

pseudoElt

string | null

返品

CSSStyleDeclaration

getSelection()

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

MDN リファレンス

function getSelection(): Selection | null

返品

Selection | null

matchMedia(string)

Window インターフェイスの matchMedia() メソッドは、新しい MediaQueryList オブジェクトを返します。このオブジェクトを使用して、ドキュメントがメディア クエリ文字列と一致するかどうかを判断したり、そのメディア クエリに一致する (または一致を停止する) ことを検出するためにドキュメントを監視したりできます。

MDN リファレンス

function matchMedia(query: string): MediaQueryList

パラメーター

query

string

返品

MediaQueryList

moveBy(number, number)

Window インターフェイスの moveBy() メソッドは、現在のウィンドウを指定した量移動します。

MDN リファレンス

function moveBy(x: number, y: number)

パラメーター

x

number

y

number

moveTo(number, number)

Window インターフェイスの moveTo() メソッドは、現在のウィンドウを指定した座標に移動します。

MDN リファレンス

function moveTo(x: number, y: number)

パラメーター

x

number

y

number

open(string | URL, string, string)

Window インターフェイスのopen()メソッドは、指定した名前で、指定したリソースを新規または既存の参照コンテキスト (タブ、ウィンドウ、または iframe) に読み込みます。

MDN リファレンス

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

パラメーター

url

string | URL

target

string

features

string

返品

Window | null

postMessage(any, string, Transferable[])

window.postMessage()メソッドは、Window オブジェクト間のクロスオリジン通信を安全に有効にします。たとえば、生成されたページとポップアップの間、またはページとその中に埋め込まれた iframe の間などです。

MDN リファレンス

function postMessage(message: any, targetOrigin: string, transfer?: Transferable[])

パラメーター

message

any

targetOrigin

string

transfer

Transferable[]

postMessage(any, WindowPostMessageOptions)

function postMessage(message: any, options?: WindowPostMessageOptions)

パラメーター

message

any

options

WindowPostMessageOptions

print()

現在の文書を印刷する印刷ダイアログを開きます。

MDN リファレンス

function print()

prompt(string, string)

window.prompt() は、ユーザーにテキストの入力を求めるオプションのメッセージを含むダイアログを表示し、ユーザーがテキストを送信するか、ダイアログをキャンセルするまで待機するようにブラウザーに指示します。

MDN リファレンス

function prompt(message?: string, _default?: string): string | null

パラメーター

message

string

_default

string

返品

string | null

releaseEvents()

警告

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

MDN Reference

特定の種類のイベントのトラップからウィンドウを解放します。

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: Window, ev: WindowEventMap[K]) => any, boolean | EventListenerOptions)

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

MDN リファレンス

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

パラメーター

type

K

listener

(this: Window, ev: WindowEventMap[K]) => any

options

boolean | EventListenerOptions

requestIdleCallback(IdleRequestCallback, IdleRequestOptions)

window.requestIdleCallback() メソッドは、ブラウザーのアイドル期間中に呼び出される関数をキューに入れます。

MDN リファレンス

function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number

パラメーター

callback

IdleRequestCallback

options

IdleRequestOptions

返品

number

resizeBy(number, number)

Window.resizeBy()メソッドは、現在のウィンドウのサイズを指定した量で変更します。

MDN リファレンス

function resizeBy(x: number, y: number)

パラメーター

x

number

y

number

resizeTo(number, number)

Window.resizeTo()メソッドは、ウィンドウのサイズを動的に変更します。

MDN リファレンス

function resizeTo(width: number, height: number)

パラメーター

width

number

height

number

scroll(number, number)

function scroll(x: number, y: number)

パラメーター

x

number

y

number

scroll(ScrollToOptions)

Window.scroll()メソッドは、ウィンドウを文書内の特定の場所までスクロールします。

MDN リファレンス

function scroll(options?: ScrollToOptions)

パラメーター

options

ScrollToOptions

scrollBy(number, number)

function scrollBy(x: number, y: number)

パラメーター

x

number

y

number

scrollBy(ScrollToOptions)

Window.scrollBy()メソッドは、ウィンドウ内のドキュメントを指定された量ずつスクロールします。

MDN リファレンス

function scrollBy(options?: ScrollToOptions)

パラメーター

options

ScrollToOptions

scrollTo(number, number)

function scrollTo(x: number, y: number)

パラメーター

x

number

y

number

scrollTo(ScrollToOptions)

Window.scrollTo() は、ドキュメント内の特定の座標セットまでスクロールします。

MDN リファレンス

function scrollTo(options?: ScrollToOptions)

パラメーター

options

ScrollToOptions

stop()

window.stop()は、ブラウザーの停止ボタンと同等に、現在のブラウズ コンテキストでのリソースの読み込みを停止します。

MDN リファレンス

function stop()

継承済みメソッドの詳細

atob(string)

MDN リファレンス

function atob(data: string): string

パラメーター

data

string

返品

string

WindowOrWorkerGlobalScope.atob から継承された

btoa(string)

MDN リファレンス

function btoa(data: string): string

パラメーター

data

string

返品

string

WindowOrWorkerGlobalScope.btoa から継承された

cancelAnimationFrame(number)

MDN リファレンス

function cancelAnimationFrame(handle: number)

パラメーター

handle

number

AnimationFrameProvider.cancelAnimationFrame から継承された

clearInterval(number | undefined)

MDN リファレンス

function clearInterval(id: number | undefined)

パラメーター

id

number | undefined

WindowOrWorkerGlobalScope.clearInterval から継承された

clearTimeout(number | undefined)

MDN リファレンス

function clearTimeout(id: number | undefined)

パラメーター

id

number | undefined

WindowOrWorkerGlobalScope.clearTimeout から継承された

createImageBitmap(ImageBitmapSource, ImageBitmapOptions)

MDN リファレンス

function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>

パラメーター

image

ImageBitmapSource

options

ImageBitmapOptions

返品

Promise<ImageBitmap>

WindowOrWorkerGlobalScope.createImageBitmap から継承された

createImageBitmap(ImageBitmapSource, number, number, number, number, ImageBitmapOptions)

function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>

パラメーター

image

ImageBitmapSource

sx

number

sy

number

sw

number

sh

number

options

ImageBitmapOptions

返品

Promise<ImageBitmap>

WindowOrWorkerGlobalScope.createImageBitmap から継承された

dispatchEvent(Event)

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

MDN リファレンス

function dispatchEvent(event: Event): boolean

パラメーター

event

Event

返品

boolean

EventTarget.dispatchEvent から継承された

fetch(URL | RequestInfo, RequestInit)

MDN リファレンス

function fetch(input: URL | RequestInfo, init?: RequestInit): Promise<Response>

パラメーター

input

URL | RequestInfo

init

RequestInit

返品

Promise<Response>

WindowOrWorkerGlobalScope.fetch から継承された

queueMicrotask(VoidFunction)

MDN リファレンス

function queueMicrotask(callback: VoidFunction)

パラメーター

callback

VoidFunction

WindowOrWorkerGlobalScope.queueMicrotask から継承された

reportError(any)

MDN リファレンス

function reportError(e: any)

パラメーター

e

any

WindowOrWorkerGlobalScope.reportError から継承された

requestAnimationFrame(FrameRequestCallback)

MDN リファレンス

function requestAnimationFrame(callback: FrameRequestCallback): number

パラメーター

callback

FrameRequestCallback

返品

number

AnimationFrameProvider.requestAnimationFrame から継承された

setInterval(TimerHandler, number, any[])

MDN リファレンス

function setInterval(handler: TimerHandler, timeout?: number, arguments: any[]): number

パラメーター

handler

TimerHandler

timeout

number

arguments

any[]

返品

number

WindowOrWorkerGlobalScope.setInterval から継承された

setTimeout(TimerHandler, number, any[])

MDN リファレンス

function setTimeout(handler: TimerHandler, timeout?: number, arguments: any[]): number

パラメーター

handler

TimerHandler

timeout

number

arguments

any[]

返品

number

WindowOrWorkerGlobalScope.setTimeout から継承された

structuredClone<T>(T, StructuredSerializeOptions)

MDN リファレンス

function structuredClone<T>(value: T, options?: StructuredSerializeOptions): T

パラメーター

value

T

options

StructuredSerializeOptions

返品

T

WindowOrWorkerGlobalScope.structuredClone から継承された