雑記帳

整理しない情報集

更新情報

Windowオブジェクトを覗いてみる

公開日:

カテゴリ: JavaScript

JavaScriptをブラウザ上のページで動作させると、windowがグローバルオブジェクトとなりますが、このオブジェクトをちゃんと見たことがない気がするので、このオブジェクトの中身を覗いてみます。

Windowオブジェクトとは

  • グローバルオブジェクト
    • このオブジェクトはどこからでも使用可能
    • このオブジェクトのプロパティにアクセスする際、オブジェクトの識別子が不要
  • ブラウザで実行した場合のみ存在
  • 文字通りブラウザウィンドウに対する操作やイベントの捕捉が可能

node.jsなどのサーバサイドのグローバルオブジェクトとは、グローバルオブジェクトである点を除き、似て非なるものです。同名や同様の機能を持つ関数やプロパティが存在することがありますが、必ずしも同じ結果を返す関数であるとは限りません。

Windowオブジェクトの継承

MDNでは以下のようになっています。

EventTarget
 └ Window

Chromeのデベロッパーツールで確認すると、以下のようになっています。

Object
 └ EventTarget
    └ WindowProperties
       └ Window

EventTargetを継承しているため、Windowオブジェクトは以下のメソッドが使えます。

  • addEventListener
  • dispatchEvent
  • removeEventListener
  • when

Windowオブジェクトも様々なイベントを捕捉することができますが、セキュリティの関係で使えなくなったものも存在します。現環境ではresizeが一番使う機会が多いかもしれません。

EventTargetに見慣れないwhenメソッドが生えていました。早くもChromeではObservable APIが使えるようになっているかもしれません。

WindowPropertiesの正体はよくわかりません。特に何らかのプロパティを継承しているというわけでもないようです。

Windowオブジェクトのプロパティ

ようやっと本題です。とりあえずconsole.log()で出てきたものを確認していきます。とりあえずWeb道具箱を開いたときのものを使います。

開いているページやプロトコルによって定義されているプロパティは異なります。httpfileaboutなどは使えないプロパティが多数存在します。

全プロパティ一覧
alert: ƒ alert()
atob: ƒ atob()
blur: ƒ blur()
btoa: ƒ btoa()
caches: CacheStorage {}
cancelAnimationFrame: ƒ cancelAnimationFrame()
cancelIdleCallback: ƒ cancelIdleCallback()
captureEvents: ƒ captureEvents()
chrome: {loadTimes: ƒ, csi: ƒ}
clearInterval: ƒ clearInterval()
clearTimeout: ƒ clearTimeout()
clientInformation: Navigator {vendorSub: '', productSub: '20030107', vendor: 'Google Inc.', maxTouchPoints: 0, scheduling: Scheduling, …}
close: ƒ close()
closed: false
confirm: ƒ confirm()
cookieStore: CookieStore {onchange: null}
createImageBitmap: ƒ createImageBitmap()
credentialless: false
crossOriginIsolated: false
crypto: Crypto {subtle: SubtleCrypto}
customElements: CustomElementRegistry {}
devicePixelRatio: 1
document: document
documentPictureInPicture: DocumentPictureInPicture {window: null, onenter: null}
event: undefined
external: External {}
fence: null
fetch: ƒ fetch()
fetchLater: ƒ fetchLater()
find: ƒ find()
focus: ƒ focus()
frameElement: null
frames: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
getComputedStyle: ƒ getComputedStyle()
getScreenDetails: ƒ getScreenDetails()
getSelection: ƒ getSelection()
history: History {length: 2, scrollRestoration: 'auto', state: null, pushState: ƒ}
indexedDB: IDBFactory {}
innerHeight: 680
innerWidth: 1022
isSecureContext: true
launchQueue: LaunchQueue {}
length: 0
localStorage: Storage {length: 0}
location: Location {ancestorOrigins: DOMStringList, href: 'https://tool.usx.jp/', origin: 'https://tool.usx.jp', protocol: 'https:', host: 'tool.usx.jp', …}
locationbar: BarProp {visible: true}
matchMedia: ƒ matchMedia()
menubar: BarProp {visible: true}
moveBy: ƒ moveBy()
moveTo: ƒ moveTo()
name: ""
navigation: Navigation {currentEntry: NavigationHistoryEntry, transition: null, activation: NavigationActivation, canGoBack: false, canGoForward: false, …}
navigator: Navigator {vendorSub: '', productSub: '20030107', vendor: 'Google Inc.', maxTouchPoints: 0, scheduling: Scheduling, …}
onabort: null
onafterprint: null
onanimationend: null
onanimationiteration: null
onanimationstart: null
onappinstalled: null
onauxclick: null
onbeforeinput: null
onbeforeinstallprompt: null
onbeforematch: null
onbeforeprint: null
onbeforetoggle: null
onbeforeunload: null
onbeforexrselect: null
onblur: null
oncancel: null
oncanplay: null
oncanplaythrough: null
onchange: null
onclick: null
onclose: null
oncommand: null
oncontentvisibilityautostatechange: null
oncontextlost: null
oncontextmenu: null
oncontextrestored: null
oncuechange: null
ondblclick: null
ondevicemotion: null
ondeviceorientation: null
ondeviceorientationabsolute: null
ondrag: null
ondragend: null
ondragenter: null
ondragleave: null
ondragover: null
ondragstart: null
ondrop: null
ondurationchange: null
onemptied: null
onended: null
onerror: null
onfocus: null
onformdata: null
ongamepadconnected: null
ongamepaddisconnected: null
ongotpointercapture: null
onhashchange: null
oninput: null
oninvalid: null
onkeydown: null
onkeypress: null
onkeyup: null
onlanguagechange: null
onload: null
onloadeddata: null
onloadedmetadata: null
onloadstart: null
onlostpointercapture: null
onmessage: null
onmessageerror: null
onmousedown: null
onmouseenter: null
onmouseleave: null
onmousemove: null
onmouseout: null
onmouseover: null
onmouseup: null
onmousewheel: null
onoffline: null
ononline: null
onpagehide: null
onpagereveal: null
onpageshow: null
onpageswap: null
onpause: null
onplay: null
onplaying: null
onpointercancel: null
onpointerdown: null
onpointerenter: null
onpointerleave: null
onpointermove: null
onpointerout: null
onpointerover: null
onpointerrawupdate: null
onpointerup: null
onpopstate: null
onprogress: null
onratechange: null
onrejectionhandled: null
onreset: null
onresize: null
onscroll: null
onscrollend: null
onscrollsnapchange: null
onscrollsnapchanging: null
onsearch: null
onsecuritypolicyviolation: null
onseeked: null
onseeking: null
onselect: null
onselectionchange: null
onselectstart: null
onslotchange: null
onstalled: null
onstorage: null
onsubmit: null
onsuspend: null
ontimeupdate: null
ontoggle: null
ontransitioncancel: null
ontransitionend: null
ontransitionrun: null
ontransitionstart: null
onunhandledrejection: null
onunload: null
onvolumechange: null
onwaiting: null
onwebkitanimationend: null
onwebkitanimationiteration: null
onwebkitanimationstart: null
onwebkittransitionend: null
onwheel: null
open: ƒ open()
opener: null
origin: "https://tool.usx.jp"
originAgentCluster: true
outerHeight: 775
outerWidth: 1038
pageXOffset: 0
pageYOffset: 0
parent: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
performance: Performance {timeOrigin: 1764938802644.4, onresourcetimingbufferfull: null, timing: PerformanceTiming, navigation: PerformanceNavigation, memory: MemoryInfo, …}
personalbar: BarProp {visible: true}
postMessage: ƒ postMessage()
print: ƒ print()
prompt: ƒ prompt()
queryLocalFonts: ƒ queryLocalFonts()
queueMicrotask: ƒ queueMicrotask()
releaseEvents: ƒ releaseEvents()
reportError: ƒ reportError()
requestAnimationFrame: ƒ requestAnimationFrame()
requestIdleCallback: ƒ requestIdleCallback()
resizeBy: ƒ resizeBy()
resizeTo: ƒ resizeTo()
scheduler: Scheduler {}
screen: Screen {availWidth: 1920, availHeight: 1032, width: 1920, height: 1080, colorDepth: 24, …}
screenLeft: -7
screenTop: 0
screenX: -7
screenY: 0
scroll: ƒ scroll()
scrollBy: ƒ scrollBy()
scrollTo: ƒ scrollTo()
scrollX: 0
scrollY: 0
scrollbars: BarProp {visible: true}
self: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
sessionStorage: Storage {length: 0}
setInterval: ƒ setInterval()
setTimeout: ƒ setTimeout()
sharedStorage: SharedStorage {worklet: SharedStorageWorklet}
showDirectoryPicker: ƒ showDirectoryPicker()
showOpenFilePicker: ƒ showOpenFilePicker()
showSaveFilePicker: ƒ showSaveFilePicker()
speechSynthesis: SpeechSynthesis {pending: false, speaking: false, paused: false, onvoiceschanged: null}
status: ""
statusbar: BarProp {visible: true}
stop: ƒ stop()
structuredClone: ƒ structuredClone()
styleMedia: StyleMedia {type: 'screen'}
toolbar: BarProp {visible: true}
top: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
trustedTypes: TrustedTypePolicyFactory {emptyHTML: emptyHTML "", emptyScript: emptyScript "", defaultPolicy: null}
viewport: Viewport {segments: Array(1)}
visualViewport: VisualViewport {offsetLeft: 0, offsetTop: 0, pageLeft: 0, pageTop: 0, width: 1007, …}
webkitCancelAnimationFrame: ƒ webkitCancelAnimationFrame()
webkitRequestAnimationFrame: ƒ webkitRequestAnimationFrame()
webkitRequestFileSystem: ƒ webkitRequestFileSystem()
webkitResolveLocalFileSystemURL: ƒ webkitResolveLocalFileSystemURL()
window: Window {window: Window, self: Window, document: document, name: '', location: Location, …}

Infinity: Infinity
AbortController: ƒ AbortController()
AbortSignal: ƒ AbortSignal()
AbsoluteOrientationSensor: ƒ AbsoluteOrientationSensor()
AbstractRange: ƒ AbstractRange()
Accelerometer: ƒ Accelerometer()
AggregateError: ƒ AggregateError()
AnalyserNode: ƒ AnalyserNode()
Animation: ƒ Animation()
AnimationEffect: ƒ AnimationEffect()
AnimationEvent: ƒ AnimationEvent()
AnimationPlaybackEvent: ƒ AnimationPlaybackEvent()
AnimationTimeline: ƒ AnimationTimeline()
Array: ƒ Array()
ArrayBuffer: ƒ ArrayBuffer()
AsyncDisposableStack: ƒ AsyncDisposableStack()
Atomics: Atomics {load: ƒ, store: ƒ, add: ƒ, sub: ƒ, and: ƒ, …}
Attr: ƒ Attr()
Audio: ƒ Audio()
AudioBuffer: ƒ AudioBuffer()
AudioBufferSourceNode: ƒ AudioBufferSourceNode()
AudioContext: ƒ AudioContext()
AudioData: ƒ AudioData()
AudioDecoder: ƒ AudioDecoder()
AudioDestinationNode: ƒ AudioDestinationNode()
AudioEncoder: ƒ AudioEncoder()
AudioListener: ƒ AudioListener()
AudioNode: ƒ AudioNode()
AudioParam: ƒ AudioParam()
AudioParamMap: ƒ AudioParamMap()
AudioProcessingEvent: ƒ AudioProcessingEvent()
AudioScheduledSourceNode: ƒ AudioScheduledSourceNode()
AudioSinkInfo: ƒ AudioSinkInfo()
AudioWorklet: ƒ AudioWorklet()
AudioWorkletNode: ƒ AudioWorkletNode()
AuthenticatorAssertionResponse: ƒ AuthenticatorAssertionResponse()
AuthenticatorAttestationResponse: ƒ AuthenticatorAttestationResponse()
AuthenticatorResponse: ƒ AuthenticatorResponse()
BackgroundFetchManager: ƒ BackgroundFetchManager()
BackgroundFetchRecord: ƒ BackgroundFetchRecord()
BackgroundFetchRegistration: ƒ BackgroundFetchRegistration()
BarProp: ƒ BarProp()
BaseAudioContext: ƒ BaseAudioContext()
BatteryManager: ƒ BatteryManager()
BeforeInstallPromptEvent: ƒ BeforeInstallPromptEvent()
BeforeUnloadEvent: ƒ BeforeUnloadEvent()
BigInt: ƒ BigInt()
BigInt64Array: ƒ BigInt64Array()
BigUint64Array: ƒ BigUint64Array()
BiquadFilterNode: ƒ BiquadFilterNode()
Blob: ƒ Blob()
BlobEvent: ƒ BlobEvent()
Bluetooth: ƒ Bluetooth()
BluetoothCharacteristicProperties: ƒ BluetoothCharacteristicProperties()
BluetoothDevice: ƒ BluetoothDevice()
BluetoothRemoteGATTCharacteristic: ƒ BluetoothRemoteGATTCharacteristic()
BluetoothRemoteGATTDescriptor: ƒ BluetoothRemoteGATTDescriptor()
BluetoothRemoteGATTServer: ƒ BluetoothRemoteGATTServer()
BluetoothRemoteGATTService: ƒ BluetoothRemoteGATTService()
BluetoothUUID: ƒ BluetoothUUID()
Boolean: ƒ Boolean()
BroadcastChannel: ƒ BroadcastChannel()
BrowserCaptureMediaStreamTrack: ƒ BrowserCaptureMediaStreamTrack()
ByteLengthQueuingStrategy: ƒ ByteLengthQueuingStrategy()
CDATASection: ƒ CDATASection()
CSPViolationReportBody: ƒ CSPViolationReportBody()
CSS: CSS {highlights: HighlightRegistry, Hz: ƒ, Q: ƒ, cap: ƒ, ch: ƒ, …}
CSSAnimation: ƒ CSSAnimation()
CSSConditionRule: ƒ CSSConditionRule()
CSSContainerRule: ƒ CSSContainerRule()
CSSCounterStyleRule: ƒ CSSCounterStyleRule()
CSSFontFaceRule: ƒ CSSFontFaceRule()
CSSFontFeatureValuesRule: ƒ CSSFontFeatureValuesRule()
CSSFontPaletteValuesRule: ƒ CSSFontPaletteValuesRule()
CSSFunctionDeclarations: ƒ CSSFunctionDeclarations()
CSSFunctionDescriptors: ƒ CSSFunctionDescriptors()
CSSFunctionRule: ƒ CSSFunctionRule()
CSSGroupingRule: ƒ CSSGroupingRule()
CSSImageValue: ƒ CSSImageValue()
CSSImportRule: ƒ CSSImportRule()
CSSKeyframeRule: ƒ CSSKeyframeRule()
CSSKeyframesRule: ƒ CSSKeyframesRule()
CSSKeywordValue: ƒ CSSKeywordValue()
CSSLayerBlockRule: ƒ CSSLayerBlockRule()
CSSLayerStatementRule: ƒ CSSLayerStatementRule()
CSSMarginRule: ƒ CSSMarginRule()
CSSMathClamp: ƒ CSSMathClamp()
CSSMathInvert: ƒ CSSMathInvert()
CSSMathMax: ƒ CSSMathMax()
CSSMathMin: ƒ CSSMathMin()
CSSMathNegate: ƒ CSSMathNegate()
CSSMathProduct: ƒ CSSMathProduct()
CSSMathSum: ƒ CSSMathSum()
CSSMathValue: ƒ CSSMathValue()
CSSMatrixComponent: ƒ CSSMatrixComponent()
CSSMediaRule: ƒ CSSMediaRule()
CSSNamespaceRule: ƒ CSSNamespaceRule()
CSSNestedDeclarations: ƒ CSSNestedDeclarations()
CSSNumericArray: ƒ CSSNumericArray()
CSSNumericValue: ƒ CSSNumericValue()
CSSPageRule: ƒ CSSPageRule()
CSSPerspective: ƒ CSSPerspective()
CSSPositionTryDescriptors: ƒ CSSPositionTryDescriptors()
CSSPositionTryRule: ƒ CSSPositionTryRule()
CSSPositionValue: ƒ CSSPositionValue()
CSSPropertyRule: ƒ CSSPropertyRule()
CSSRotate: ƒ CSSRotate()
CSSRule: ƒ CSSRule()
CSSRuleList: ƒ CSSRuleList()
CSSScale: ƒ CSSScale()
CSSScopeRule: ƒ CSSScopeRule()
CSSSkew: ƒ CSSSkew()
CSSSkewX: ƒ CSSSkewX()
CSSSkewY: ƒ CSSSkewY()
CSSStartingStyleRule: ƒ CSSStartingStyleRule()
CSSStyleDeclaration: ƒ CSSStyleDeclaration()
CSSStyleRule: ƒ CSSStyleRule()
CSSStyleSheet: ƒ CSSStyleSheet()
CSSStyleValue: ƒ CSSStyleValue()
CSSSupportsRule: ƒ CSSSupportsRule()
CSSTransformComponent: ƒ CSSTransformComponent()
CSSTransformValue: ƒ CSSTransformValue()
CSSTransition: ƒ CSSTransition()
CSSTranslate: ƒ CSSTranslate()
CSSUnitValue: ƒ CSSUnitValue()
CSSUnparsedValue: ƒ CSSUnparsedValue()
CSSVariableReferenceValue: ƒ CSSVariableReferenceValue()
CSSViewTransitionRule: ƒ CSSViewTransitionRule()
Cache: ƒ Cache()
CacheStorage: ƒ CacheStorage()
CanvasCaptureMediaStreamTrack: ƒ CanvasCaptureMediaStreamTrack()
CanvasGradient: ƒ CanvasGradient()
CanvasPattern: ƒ CanvasPattern()
CanvasRenderingContext2D: ƒ CanvasRenderingContext2D()
CaptureController: ƒ CaptureController()
CaretPosition: ƒ CaretPosition()
ChannelMergerNode: ƒ ChannelMergerNode()
ChannelSplitterNode: ƒ ChannelSplitterNode()
ChapterInformation: ƒ ChapterInformation()
CharacterBoundsUpdateEvent: ƒ CharacterBoundsUpdateEvent()
CharacterData: ƒ CharacterData()
Clipboard: ƒ Clipboard()
ClipboardEvent: ƒ ClipboardEvent()
ClipboardItem: ƒ ClipboardItem()
CloseEvent: ƒ CloseEvent()
CloseWatcher: ƒ CloseWatcher()
CommandEvent: ƒ CommandEvent()
Comment: ƒ Comment()
CompositionEvent: ƒ CompositionEvent()
CompressionStream: ƒ CompressionStream()
ConstantSourceNode: ƒ ConstantSourceNode()
ContentVisibilityAutoStateChangeEvent: ƒ ContentVisibilityAutoStateChangeEvent()
ConvolverNode: ƒ ConvolverNode()
CookieChangeEvent: ƒ CookieChangeEvent()
CookieStore: ƒ CookieStore()
CookieStoreManager: ƒ CookieStoreManager()
CountQueuingStrategy: ƒ CountQueuingStrategy()
CreateMonitor: ƒ CreateMonitor()
Credential: ƒ Credential()
CredentialsContainer: ƒ CredentialsContainer()
CropTarget: ƒ CropTarget()
Crypto: ƒ Crypto()
CryptoKey: ƒ CryptoKey()
CustomElementRegistry: ƒ CustomElementRegistry()
CustomEvent: ƒ CustomEvent()
CustomStateSet: ƒ CustomStateSet()
DOMError: ƒ DOMError()
DOMException: ƒ DOMException()
DOMImplementation: ƒ DOMImplementation()
DOMMatrix: ƒ DOMMatrix()
DOMMatrixReadOnly: ƒ DOMMatrixReadOnly()
DOMParser: ƒ DOMParser()
DOMPoint: ƒ DOMPoint()
DOMPointReadOnly: ƒ DOMPointReadOnly()
DOMQuad: ƒ DOMQuad()
DOMRect: ƒ DOMRect()
DOMRectList: ƒ DOMRectList()
DOMRectReadOnly: ƒ DOMRectReadOnly()
DOMStringList: ƒ DOMStringList()
DOMStringMap: ƒ DOMStringMap()
DOMTokenList: ƒ DOMTokenList()
DataTransfer: ƒ DataTransfer()
DataTransferItem: ƒ DataTransferItem()
DataTransferItemList: ƒ DataTransferItemList()
DataView: ƒ DataView()
Date: ƒ Date()
DecompressionStream: ƒ DecompressionStream()
DelayNode: ƒ DelayNode()
DelegatedInkTrailPresenter: ƒ DelegatedInkTrailPresenter()
DeviceMotionEvent: ƒ DeviceMotionEvent()
DeviceMotionEventAcceleration: ƒ DeviceMotionEventAcceleration()
DeviceMotionEventRotationRate: ƒ DeviceMotionEventRotationRate()
DeviceOrientationEvent: ƒ DeviceOrientationEvent()
DevicePosture: ƒ DevicePosture()
DigitalCredential: ƒ DigitalCredential()
DisposableStack: ƒ DisposableStack()
Document: ƒ Document()
DocumentFragment: ƒ DocumentFragment()
DocumentPictureInPicture: ƒ DocumentPictureInPicture()
DocumentPictureInPictureEvent: ƒ DocumentPictureInPictureEvent()
DocumentTimeline: ƒ DocumentTimeline()
DocumentType: ƒ DocumentType()
DragEvent: ƒ DragEvent()
DynamicsCompressorNode: ƒ DynamicsCompressorNode()
EditContext: ƒ EditContext()
Element: ƒ Element()
ElementInternals: ƒ ElementInternals()
EncodedAudioChunk: ƒ EncodedAudioChunk()
EncodedVideoChunk: ƒ EncodedVideoChunk()
Error: ƒ Error()
ErrorEvent: ƒ ErrorEvent()
EvalError: ƒ EvalError()
Event: ƒ Event()
EventCounts: ƒ EventCounts()
EventSource: ƒ EventSource()
EventTarget: ƒ EventTarget()
External: ƒ External()
EyeDropper: ƒ EyeDropper()
FeaturePolicy: ƒ FeaturePolicy()
FederatedCredential: ƒ FederatedCredential()
Fence: ƒ Fence()
FencedFrameConfig: ƒ FencedFrameConfig()
FetchLaterResult: ƒ FetchLaterResult()
File: ƒ File()
FileList: ƒ FileList()
FileReader: ƒ FileReader()
FileSystemDirectoryHandle: ƒ FileSystemDirectoryHandle()
FileSystemFileHandle: ƒ FileSystemFileHandle()
FileSystemHandle: ƒ FileSystemHandle()
FileSystemObserver: ƒ FileSystemObserver()
FileSystemWritableFileStream: ƒ FileSystemWritableFileStream()
FinalizationRegistry: ƒ FinalizationRegistry()
Float16Array: ƒ Float16Array()
Float32Array: ƒ Float32Array()
Float64Array: ƒ Float64Array()
FocusEvent: ƒ FocusEvent()
FontData: ƒ FontData()
FontFace: ƒ FontFace()
FontFaceSetLoadEvent: ƒ FontFaceSetLoadEvent()
FormData: ƒ FormData()
FormDataEvent: ƒ FormDataEvent()
FragmentDirective: ƒ FragmentDirective()
Function: ƒ Function()
GPU: ƒ GPU()
GPUAdapter: ƒ GPUAdapter()
GPUAdapterInfo: ƒ GPUAdapterInfo()
GPUBindGroup: ƒ GPUBindGroup()
GPUBindGroupLayout: ƒ GPUBindGroupLayout()
GPUBuffer: ƒ GPUBuffer()
GPUBufferUsage: GPUBufferUsage {MAP_READ: 1, MAP_WRITE: 2, COPY_SRC: 4, COPY_DST: 8, INDEX: 16, …}
GPUCanvasContext: ƒ GPUCanvasContext()
GPUColorWrite: GPUColorWrite {RED: 1, GREEN: 2, BLUE: 4, ALPHA: 8, ALL: 15, …}
GPUCommandBuffer: ƒ GPUCommandBuffer()
GPUCommandEncoder: ƒ GPUCommandEncoder()
GPUCompilationInfo: ƒ GPUCompilationInfo()
GPUCompilationMessage: ƒ GPUCompilationMessage()
GPUComputePassEncoder: ƒ GPUComputePassEncoder()
GPUComputePipeline: ƒ GPUComputePipeline()
GPUDevice: ƒ GPUDevice()
GPUDeviceLostInfo: ƒ GPUDeviceLostInfo()
GPUError: ƒ GPUError()
GPUExternalTexture: ƒ GPUExternalTexture()
GPUInternalError: ƒ GPUInternalError()
GPUMapMode: GPUMapMode {READ: 1, WRITE: 2, Symbol(Symbol.toStringTag): 'GPUMapMode'}
GPUOutOfMemoryError: ƒ GPUOutOfMemoryError()
GPUPipelineError: ƒ GPUPipelineError()
GPUPipelineLayout: ƒ GPUPipelineLayout()
GPUQuerySet: ƒ GPUQuerySet()
GPUQueue: ƒ GPUQueue()
GPURenderBundle: ƒ GPURenderBundle()
GPURenderBundleEncoder: ƒ GPURenderBundleEncoder()
GPURenderPassEncoder: ƒ GPURenderPassEncoder()
GPURenderPipeline: ƒ GPURenderPipeline()
GPUSampler: ƒ GPUSampler()
GPUShaderModule: ƒ GPUShaderModule()
GPUShaderStage: GPUShaderStage {VERTEX: 1, FRAGMENT: 2, COMPUTE: 4, Symbol(Symbol.toStringTag): 'GPUShaderStage'}
GPUSupportedFeatures: ƒ GPUSupportedFeatures()
GPUSupportedLimits: ƒ GPUSupportedLimits()
GPUTexture: ƒ GPUTexture()
GPUTextureUsage: GPUTextureUsage {COPY_SRC: 1, COPY_DST: 2, TEXTURE_BINDING: 4, STORAGE_BINDING: 8, RENDER_ATTACHMENT: 16, …}
GPUTextureView: ƒ GPUTextureView()
GPUUncapturedErrorEvent: ƒ GPUUncapturedErrorEvent()
GPUValidationError: ƒ GPUValidationError()
GainNode: ƒ GainNode()
Gamepad: ƒ Gamepad()
GamepadButton: ƒ GamepadButton()
GamepadEvent: ƒ GamepadEvent()
GamepadHapticActuator: ƒ GamepadHapticActuator()
Geolocation: ƒ Geolocation()
GeolocationCoordinates: ƒ GeolocationCoordinates()
GeolocationPosition: ƒ GeolocationPosition()
GeolocationPositionError: ƒ GeolocationPositionError()
GravitySensor: ƒ GravitySensor()
Gyroscope: ƒ Gyroscope()
HID: ƒ HID()
HIDConnectionEvent: ƒ HIDConnectionEvent()
HIDDevice: ƒ HIDDevice()
HIDInputReportEvent: ƒ HIDInputReportEvent()
HTMLAllCollection: ƒ HTMLAllCollection()
HTMLAnchorElement: ƒ HTMLAnchorElement()
HTMLAreaElement: ƒ HTMLAreaElement()
HTMLAudioElement: ƒ HTMLAudioElement()
HTMLBRElement: ƒ HTMLBRElement()
HTMLBaseElement: ƒ HTMLBaseElement()
HTMLBodyElement: ƒ HTMLBodyElement()
HTMLButtonElement: ƒ HTMLButtonElement()
HTMLCanvasElement: ƒ HTMLCanvasElement()
HTMLCollection: ƒ HTMLCollection()
HTMLDListElement: ƒ HTMLDListElement()
HTMLDataElement: ƒ HTMLDataElement()
HTMLDataListElement: ƒ HTMLDataListElement()
HTMLDetailsElement: ƒ HTMLDetailsElement()
HTMLDialogElement: ƒ HTMLDialogElement()
HTMLDirectoryElement: ƒ HTMLDirectoryElement()
HTMLDivElement: ƒ HTMLDivElement()
HTMLDocument: ƒ HTMLDocument()
HTMLElement: ƒ HTMLElement()
HTMLEmbedElement: ƒ HTMLEmbedElement()
HTMLFencedFrameElement: ƒ HTMLFencedFrameElement()
HTMLFieldSetElement: ƒ HTMLFieldSetElement()
HTMLFontElement: ƒ HTMLFontElement()
HTMLFormControlsCollection: ƒ HTMLFormControlsCollection()
HTMLFormElement: ƒ HTMLFormElement()
HTMLFrameElement: ƒ HTMLFrameElement()
HTMLFrameSetElement: ƒ HTMLFrameSetElement()
HTMLHRElement: ƒ HTMLHRElement()
HTMLHeadElement: ƒ HTMLHeadElement()
HTMLHeadingElement: ƒ HTMLHeadingElement()
HTMLHtmlElement: ƒ HTMLHtmlElement()
HTMLIFrameElement: ƒ HTMLIFrameElement()
HTMLImageElement: ƒ HTMLImageElement()
HTMLInputElement: ƒ HTMLInputElement()
HTMLLIElement: ƒ HTMLLIElement()
HTMLLabelElement: ƒ HTMLLabelElement()
HTMLLegendElement: ƒ HTMLLegendElement()
HTMLLinkElement: ƒ HTMLLinkElement()
HTMLMapElement: ƒ HTMLMapElement()
HTMLMarqueeElement: ƒ HTMLMarqueeElement()
HTMLMediaElement: ƒ HTMLMediaElement()
HTMLMenuElement: ƒ HTMLMenuElement()
HTMLMetaElement: ƒ HTMLMetaElement()
HTMLMeterElement: ƒ HTMLMeterElement()
HTMLModElement: ƒ HTMLModElement()
HTMLOListElement: ƒ HTMLOListElement()
HTMLObjectElement: ƒ HTMLObjectElement()
HTMLOptGroupElement: ƒ HTMLOptGroupElement()
HTMLOptionElement: ƒ HTMLOptionElement()
HTMLOptionsCollection: ƒ HTMLOptionsCollection()
HTMLOutputElement: ƒ HTMLOutputElement()
HTMLParagraphElement: ƒ HTMLParagraphElement()
HTMLParamElement: ƒ HTMLParamElement()
HTMLPictureElement: ƒ HTMLPictureElement()
HTMLPreElement: ƒ HTMLPreElement()
HTMLProgressElement: ƒ HTMLProgressElement()
HTMLQuoteElement: ƒ HTMLQuoteElement()
HTMLScriptElement: ƒ HTMLScriptElement()
HTMLSelectElement: ƒ HTMLSelectElement()
HTMLSelectedContentElement: ƒ HTMLSelectedContentElement()
HTMLSlotElement: ƒ HTMLSlotElement()
HTMLSourceElement: ƒ HTMLSourceElement()
HTMLSpanElement: ƒ HTMLSpanElement()
HTMLStyleElement: ƒ HTMLStyleElement()
HTMLTableCaptionElement: ƒ HTMLTableCaptionElement()
HTMLTableCellElement: ƒ HTMLTableCellElement()
HTMLTableColElement: ƒ HTMLTableColElement()
HTMLTableElement: ƒ HTMLTableElement()
HTMLTableRowElement: ƒ HTMLTableRowElement()
HTMLTableSectionElement: ƒ HTMLTableSectionElement()
HTMLTemplateElement: ƒ HTMLTemplateElement()
HTMLTextAreaElement: ƒ HTMLTextAreaElement()
HTMLTimeElement: ƒ HTMLTimeElement()
HTMLTitleElement: ƒ HTMLTitleElement()
HTMLTrackElement: ƒ HTMLTrackElement()
HTMLUListElement: ƒ HTMLUListElement()
HTMLUnknownElement: ƒ HTMLUnknownElement()
HTMLVideoElement: ƒ HTMLVideoElement()
HashChangeEvent: ƒ HashChangeEvent()
Headers: ƒ Headers()
Highlight: ƒ Highlight()
HighlightRegistry: ƒ HighlightRegistry()
History: ƒ History()
IDBCursor: ƒ IDBCursor()
IDBCursorWithValue: ƒ IDBCursorWithValue()
IDBDatabase: ƒ IDBDatabase()
IDBFactory: ƒ IDBFactory()
IDBIndex: ƒ IDBIndex()
IDBKeyRange: ƒ IDBKeyRange()
IDBObjectStore: ƒ IDBObjectStore()
IDBOpenDBRequest: ƒ IDBOpenDBRequest()
IDBRecord: ƒ IDBRecord()
IDBRequest: ƒ IDBRequest()
IDBTransaction: ƒ IDBTransaction()
IDBVersionChangeEvent: ƒ IDBVersionChangeEvent()
IIRFilterNode: ƒ IIRFilterNode()
IdentityCredential: ƒ IdentityCredential()
IdentityCredentialError: ƒ IdentityCredentialError()
IdentityProvider: ƒ IdentityProvider()
IdleDeadline: ƒ IdleDeadline()
IdleDetector: ƒ IdleDetector()
Image: ƒ Image()
ImageBitmap: ƒ ImageBitmap()
ImageBitmapRenderingContext: ƒ ImageBitmapRenderingContext()
ImageCapture: ƒ ImageCapture()
ImageData: ƒ ImageData()
ImageDecoder: ƒ ImageDecoder()
ImageTrack: ƒ ImageTrack()
ImageTrackList: ƒ ImageTrackList()
Ink: ƒ Ink()
InputDeviceCapabilities: ƒ InputDeviceCapabilities()
InputDeviceInfo: ƒ InputDeviceInfo()
InputEvent: ƒ InputEvent()
Int8Array: ƒ Int8Array()
Int16Array: ƒ Int16Array()
Int32Array: ƒ Int32Array()
IntegrityViolationReportBody: ƒ IntegrityViolationReportBody()
InterestEvent: ƒ InterestEvent()
IntersectionObserver: ƒ IntersectionObserver()
IntersectionObserverEntry: ƒ IntersectionObserverEntry()
Intl: Intl {getCanonicalLocales: ƒ, supportedValuesOf: ƒ, DateTimeFormat: ƒ, NumberFormat: ƒ, Collator: ƒ, …}
Iterator: ƒ Iterator()
JSON: JSON {Symbol(Symbol.toStringTag): 'JSON', parse: ƒ, stringify: ƒ, rawJSON: ƒ, isRawJSON: ƒ}
Keyboard: ƒ Keyboard()
KeyboardEvent: ƒ KeyboardEvent()
KeyboardLayoutMap: ƒ KeyboardLayoutMap()
KeyframeEffect: ƒ KeyframeEffect()
LanguageDetector: ƒ LanguageDetector()
LargestContentfulPaint: ƒ LargestContentfulPaint()
LaunchParams: ƒ LaunchParams()
LaunchQueue: ƒ LaunchQueue()
LayoutShift: ƒ LayoutShift()
LayoutShiftAttribution: ƒ LayoutShiftAttribution()
LinearAccelerationSensor: ƒ LinearAccelerationSensor()
Location: ƒ Location()
Lock: ƒ Lock()
LockManager: ƒ LockManager()
MIDIAccess: ƒ MIDIAccess()
MIDIConnectionEvent: ƒ MIDIConnectionEvent()
MIDIInput: ƒ MIDIInput()
MIDIInputMap: ƒ MIDIInputMap()
MIDIMessageEvent: ƒ MIDIMessageEvent()
MIDIOutput: ƒ MIDIOutput()
MIDIOutputMap: ƒ MIDIOutputMap()
MIDIPort: ƒ MIDIPort()
Map: ƒ Map()
Math: Math {abs: ƒ, acos: ƒ, acosh: ƒ, asin: ƒ, asinh: ƒ, …}
MathMLElement: ƒ MathMLElement()
MediaCapabilities: ƒ MediaCapabilities()
MediaDeviceInfo: ƒ MediaDeviceInfo()
MediaDevices: ƒ MediaDevices()
MediaElementAudioSourceNode: ƒ MediaElementAudioSourceNode()
MediaEncryptedEvent: ƒ MediaEncryptedEvent()
MediaError: ƒ MediaError()
MediaKeyMessageEvent: ƒ MediaKeyMessageEvent()
MediaKeySession: ƒ MediaKeySession()
MediaKeyStatusMap: ƒ MediaKeyStatusMap()
MediaKeySystemAccess: ƒ MediaKeySystemAccess()
MediaKeys: ƒ MediaKeys()
MediaList: ƒ MediaList()
MediaMetadata: ƒ MediaMetadata()
MediaQueryList: ƒ MediaQueryList()
MediaQueryListEvent: ƒ MediaQueryListEvent()
MediaRecorder: ƒ MediaRecorder()
MediaSession: ƒ MediaSession()
MediaSource: ƒ MediaSource()
MediaSourceHandle: ƒ MediaSourceHandle()
MediaStream: ƒ MediaStream()
MediaStreamAudioDestinationNode: ƒ MediaStreamAudioDestinationNode()
MediaStreamAudioSourceNode: ƒ MediaStreamAudioSourceNode()
MediaStreamEvent: ƒ MediaStreamEvent()
MediaStreamTrack: ƒ MediaStreamTrack()
MediaStreamTrackAudioStats: ƒ MediaStreamTrackAudioStats()
MediaStreamTrackEvent: ƒ MediaStreamTrackEvent()
MediaStreamTrackGenerator: ƒ MediaStreamTrackGenerator()
MediaStreamTrackProcessor: ƒ MediaStreamTrackProcessor()
MediaStreamTrackVideoStats: ƒ MediaStreamTrackVideoStats()
MessageChannel: ƒ MessageChannel()
MessageEvent: ƒ MessageEvent()
MessagePort: ƒ MessagePort()
MimeType: ƒ MimeType()
MimeTypeArray: ƒ MimeTypeArray()
MouseEvent: ƒ MouseEvent()
MutationObserver: ƒ MutationObserver()
MutationRecord: ƒ MutationRecord()
NaN: NaN
NamedNodeMap: ƒ NamedNodeMap()
NavigateEvent: ƒ NavigateEvent()
Navigation: ƒ Navigation()
NavigationActivation: ƒ NavigationActivation()
NavigationCurrentEntryChangeEvent: ƒ NavigationCurrentEntryChangeEvent()
NavigationDestination: ƒ NavigationDestination()
NavigationHistoryEntry: ƒ NavigationHistoryEntry()
NavigationPrecommitController: ƒ NavigationPrecommitController()
NavigationPreloadManager: ƒ NavigationPreloadManager()
NavigationTransition: ƒ NavigationTransition()
Navigator: ƒ Navigator()
NavigatorLogin: ƒ NavigatorLogin()
NavigatorManagedData: ƒ NavigatorManagedData()
NavigatorUAData: ƒ NavigatorUAData()
NetworkInformation: ƒ NetworkInformation()
Node: ƒ Node()
NodeFilter: ƒ NodeFilter()
NodeIterator: ƒ NodeIterator()
NodeList: ƒ NodeList()
NotRestoredReasonDetails: ƒ NotRestoredReasonDetails()
NotRestoredReasons: ƒ NotRestoredReasons()
Notification: ƒ Notification()
Number: ƒ Number()
OTPCredential: ƒ OTPCredential()
Object: ƒ Object()
Observable: ƒ Observable()
OfflineAudioCompletionEvent: ƒ OfflineAudioCompletionEvent()
OfflineAudioContext: ƒ OfflineAudioContext()
OffscreenCanvas: ƒ OffscreenCanvas()
OffscreenCanvasRenderingContext2D: ƒ OffscreenCanvasRenderingContext2D()
Option: ƒ Option()
OrientationSensor: ƒ OrientationSensor()
OscillatorNode: ƒ OscillatorNode()
OverconstrainedError: ƒ OverconstrainedError()
PageRevealEvent: ƒ PageRevealEvent()
PageSwapEvent: ƒ PageSwapEvent()
PageTransitionEvent: ƒ PageTransitionEvent()
PannerNode: ƒ PannerNode()
PasswordCredential: ƒ PasswordCredential()
Path2D: ƒ Path2D()
PaymentAddress: ƒ PaymentAddress()
PaymentManager: ƒ PaymentManager()
PaymentMethodChangeEvent: ƒ PaymentMethodChangeEvent()
PaymentRequest: ƒ PaymentRequest()
PaymentRequestUpdateEvent: ƒ PaymentRequestUpdateEvent()
PaymentResponse: ƒ PaymentResponse()
Performance: ƒ Performance()
PerformanceElementTiming: ƒ PerformanceElementTiming()
PerformanceEntry: ƒ PerformanceEntry()
PerformanceEventTiming: ƒ PerformanceEventTiming()
PerformanceLongAnimationFrameTiming: ƒ PerformanceLongAnimationFrameTiming()
PerformanceLongTaskTiming: ƒ PerformanceLongTaskTiming()
PerformanceMark: ƒ PerformanceMark()
PerformanceMeasure: ƒ PerformanceMeasure()
PerformanceNavigation: ƒ PerformanceNavigation()
PerformanceNavigationTiming: ƒ PerformanceNavigationTiming()
PerformanceObserver: ƒ PerformanceObserver()
PerformanceObserverEntryList: ƒ PerformanceObserverEntryList()
PerformancePaintTiming: ƒ PerformancePaintTiming()
PerformanceResourceTiming: ƒ PerformanceResourceTiming()
PerformanceScriptTiming: ƒ PerformanceScriptTiming()
PerformanceServerTiming: ƒ PerformanceServerTiming()
PerformanceTiming: ƒ PerformanceTiming()
PeriodicSyncManager: ƒ PeriodicSyncManager()
PeriodicWave: ƒ PeriodicWave()
PermissionStatus: ƒ PermissionStatus()
Permissions: ƒ Permissions()
PictureInPictureEvent: ƒ PictureInPictureEvent()
PictureInPictureWindow: ƒ PictureInPictureWindow()
Plugin: ƒ Plugin()
PluginArray: ƒ PluginArray()
PointerEvent: ƒ PointerEvent()
PopStateEvent: ƒ PopStateEvent()
Presentation: ƒ Presentation()
PresentationAvailability: ƒ PresentationAvailability()
PresentationConnection: ƒ PresentationConnection()
PresentationConnectionAvailableEvent: ƒ PresentationConnectionAvailableEvent()
PresentationConnectionCloseEvent: ƒ PresentationConnectionCloseEvent()
PresentationConnectionList: ƒ PresentationConnectionList()
PresentationReceiver: ƒ PresentationReceiver()
PresentationRequest: ƒ PresentationRequest()
PressureObserver: ƒ PressureObserver()
PressureRecord: ƒ PressureRecord()
ProcessingInstruction: ƒ ProcessingInstruction()
Profiler: ƒ Profiler()
ProgressEvent: ƒ ProgressEvent()
Promise: ƒ Promise()
PromiseRejectionEvent: ƒ PromiseRejectionEvent()
ProtectedAudience: ƒ ProtectedAudience()
Proxy: ƒ Proxy()
PublicKeyCredential: ƒ PublicKeyCredential()
PushManager: ƒ PushManager()
PushSubscription: ƒ PushSubscription()
PushSubscriptionOptions: ƒ PushSubscriptionOptions()
QuotaExceededError: ƒ QuotaExceededError()
RTCCertificate: ƒ RTCCertificate()
RTCDTMFSender: ƒ RTCDTMFSender()
RTCDTMFToneChangeEvent: ƒ RTCDTMFToneChangeEvent()
RTCDataChannel: ƒ RTCDataChannel()
RTCDataChannelEvent: ƒ RTCDataChannelEvent()
RTCDtlsTransport: ƒ RTCDtlsTransport()
RTCEncodedAudioFrame: ƒ RTCEncodedAudioFrame()
RTCEncodedVideoFrame: ƒ RTCEncodedVideoFrame()
RTCError: ƒ RTCError()
RTCErrorEvent: ƒ RTCErrorEvent()
RTCIceCandidate: ƒ RTCIceCandidate()
RTCIceTransport: ƒ RTCIceTransport()
RTCPeerConnection: ƒ RTCPeerConnection()
RTCPeerConnectionIceErrorEvent: ƒ RTCPeerConnectionIceErrorEvent()
RTCPeerConnectionIceEvent: ƒ RTCPeerConnectionIceEvent()
RTCRtpReceiver: ƒ RTCRtpReceiver()
RTCRtpScriptTransform: ƒ RTCRtpScriptTransform()
RTCRtpSender: ƒ RTCRtpSender()
RTCRtpTransceiver: ƒ RTCRtpTransceiver()
RTCSctpTransport: ƒ RTCSctpTransport()
RTCSessionDescription: ƒ RTCSessionDescription()
RTCStatsReport: ƒ RTCStatsReport()
RTCTrackEvent: ƒ RTCTrackEvent()
RadioNodeList: ƒ RadioNodeList()
Range: ƒ Range()
RangeError: ƒ RangeError()
ReadableByteStreamController: ƒ ReadableByteStreamController()
ReadableStream: ƒ ReadableStream()
ReadableStreamBYOBReader: ƒ ReadableStreamBYOBReader()
ReadableStreamBYOBRequest: ƒ ReadableStreamBYOBRequest()
ReadableStreamDefaultController: ƒ ReadableStreamDefaultController()
ReadableStreamDefaultReader: ƒ ReadableStreamDefaultReader()
ReferenceError: ƒ ReferenceError()
Reflect: Reflect {defineProperty: ƒ, deleteProperty: ƒ, apply: ƒ, construct: ƒ, get: ƒ, …}
RegExp: ƒ RegExp()
RelativeOrientationSensor: ƒ RelativeOrientationSensor()
RemotePlayback: ƒ RemotePlayback()
ReportBody: ƒ ReportBody()
ReportingObserver: ƒ ReportingObserver()
Request: ƒ Request()
ResizeObserver: ƒ ResizeObserver()
ResizeObserverEntry: ƒ ResizeObserverEntry()
ResizeObserverSize: ƒ ResizeObserverSize()
Response: ƒ Response()
RestrictionTarget: ƒ RestrictionTarget()
SVGAElement: ƒ SVGAElement()
SVGAngle: ƒ SVGAngle()
SVGAnimateElement: ƒ SVGAnimateElement()
SVGAnimateMotionElement: ƒ SVGAnimateMotionElement()
SVGAnimateTransformElement: ƒ SVGAnimateTransformElement()
SVGAnimatedAngle: ƒ SVGAnimatedAngle()
SVGAnimatedBoolean: ƒ SVGAnimatedBoolean()
SVGAnimatedEnumeration: ƒ SVGAnimatedEnumeration()
SVGAnimatedInteger: ƒ SVGAnimatedInteger()
SVGAnimatedLength: ƒ SVGAnimatedLength()
SVGAnimatedLengthList: ƒ SVGAnimatedLengthList()
SVGAnimatedNumber: ƒ SVGAnimatedNumber()
SVGAnimatedNumberList: ƒ SVGAnimatedNumberList()
SVGAnimatedPreserveAspectRatio: ƒ SVGAnimatedPreserveAspectRatio()
SVGAnimatedRect: ƒ SVGAnimatedRect()
SVGAnimatedString: ƒ SVGAnimatedString()
SVGAnimatedTransformList: ƒ SVGAnimatedTransformList()
SVGAnimationElement: ƒ SVGAnimationElement()
SVGCircleElement: ƒ SVGCircleElement()
SVGClipPathElement: ƒ SVGClipPathElement()
SVGComponentTransferFunctionElement: ƒ SVGComponentTransferFunctionElement()
SVGDefsElement: ƒ SVGDefsElement()
SVGDescElement: ƒ SVGDescElement()
SVGElement: ƒ SVGElement()
SVGEllipseElement: ƒ SVGEllipseElement()
SVGFEBlendElement: ƒ SVGFEBlendElement()
SVGFEColorMatrixElement: ƒ SVGFEColorMatrixElement()
SVGFEComponentTransferElement: ƒ SVGFEComponentTransferElement()
SVGFECompositeElement: ƒ SVGFECompositeElement()
SVGFEConvolveMatrixElement: ƒ SVGFEConvolveMatrixElement()
SVGFEDiffuseLightingElement: ƒ SVGFEDiffuseLightingElement()
SVGFEDisplacementMapElement: ƒ SVGFEDisplacementMapElement()
SVGFEDistantLightElement: ƒ SVGFEDistantLightElement()
SVGFEDropShadowElement: ƒ SVGFEDropShadowElement()
SVGFEFloodElement: ƒ SVGFEFloodElement()
SVGFEFuncAElement: ƒ SVGFEFuncAElement()
SVGFEFuncBElement: ƒ SVGFEFuncBElement()
SVGFEFuncGElement: ƒ SVGFEFuncGElement()
SVGFEFuncRElement: ƒ SVGFEFuncRElement()
SVGFEGaussianBlurElement: ƒ SVGFEGaussianBlurElement()
SVGFEImageElement: ƒ SVGFEImageElement()
SVGFEMergeElement: ƒ SVGFEMergeElement()
SVGFEMergeNodeElement: ƒ SVGFEMergeNodeElement()
SVGFEMorphologyElement: ƒ SVGFEMorphologyElement()
SVGFEOffsetElement: ƒ SVGFEOffsetElement()
SVGFEPointLightElement: ƒ SVGFEPointLightElement()
SVGFESpecularLightingElement: ƒ SVGFESpecularLightingElement()
SVGFESpotLightElement: ƒ SVGFESpotLightElement()
SVGFETileElement: ƒ SVGFETileElement()
SVGFETurbulenceElement: ƒ SVGFETurbulenceElement()
SVGFilterElement: ƒ SVGFilterElement()
SVGForeignObjectElement: ƒ SVGForeignObjectElement()
SVGGElement: ƒ SVGGElement()
SVGGeometryElement: ƒ SVGGeometryElement()
SVGGradientElement: ƒ SVGGradientElement()
SVGGraphicsElement: ƒ SVGGraphicsElement()
SVGImageElement: ƒ SVGImageElement()
SVGLength: ƒ SVGLength()
SVGLengthList: ƒ SVGLengthList()
SVGLineElement: ƒ SVGLineElement()
SVGLinearGradientElement: ƒ SVGLinearGradientElement()
SVGMPathElement: ƒ SVGMPathElement()
SVGMarkerElement: ƒ SVGMarkerElement()
SVGMaskElement: ƒ SVGMaskElement()
SVGMatrix: ƒ SVGMatrix()
SVGMetadataElement: ƒ SVGMetadataElement()
SVGNumber: ƒ SVGNumber()
SVGNumberList: ƒ SVGNumberList()
SVGPathElement: ƒ SVGPathElement()
SVGPatternElement: ƒ SVGPatternElement()
SVGPoint: ƒ SVGPoint()
SVGPointList: ƒ SVGPointList()
SVGPolygonElement: ƒ SVGPolygonElement()
SVGPolylineElement: ƒ SVGPolylineElement()
SVGPreserveAspectRatio: ƒ SVGPreserveAspectRatio()
SVGRadialGradientElement: ƒ SVGRadialGradientElement()
SVGRect: ƒ SVGRect()
SVGRectElement: ƒ SVGRectElement()
SVGSVGElement: ƒ SVGSVGElement()
SVGScriptElement: ƒ SVGScriptElement()
SVGSetElement: ƒ SVGSetElement()
SVGStopElement: ƒ SVGStopElement()
SVGStringList: ƒ SVGStringList()
SVGStyleElement: ƒ SVGStyleElement()
SVGSwitchElement: ƒ SVGSwitchElement()
SVGSymbolElement: ƒ SVGSymbolElement()
SVGTSpanElement: ƒ SVGTSpanElement()
SVGTextContentElement: ƒ SVGTextContentElement()
SVGTextElement: ƒ SVGTextElement()
SVGTextPathElement: ƒ SVGTextPathElement()
SVGTextPositioningElement: ƒ SVGTextPositioningElement()
SVGTitleElement: ƒ SVGTitleElement()
SVGTransform: ƒ SVGTransform()
SVGTransformList: ƒ SVGTransformList()
SVGUnitTypes: ƒ SVGUnitTypes()
SVGUseElement: ƒ SVGUseElement()
SVGViewElement: ƒ SVGViewElement()
Scheduler: ƒ Scheduler()
Scheduling: ƒ Scheduling()
Screen: ƒ Screen()
ScreenDetailed: ƒ ScreenDetailed()
ScreenDetails: ƒ ScreenDetails()
ScreenOrientation: ƒ ScreenOrientation()
ScriptProcessorNode: ƒ ScriptProcessorNode()
ScrollTimeline: ƒ ScrollTimeline()
SecurityPolicyViolationEvent: ƒ SecurityPolicyViolationEvent()
Selection: ƒ Selection()
Sensor: ƒ Sensor()
SensorErrorEvent: ƒ SensorErrorEvent()
Serial: ƒ Serial()
SerialPort: ƒ SerialPort()
ServiceWorker: ƒ ServiceWorker()
ServiceWorkerContainer: ƒ ServiceWorkerContainer()
ServiceWorkerRegistration: ƒ ServiceWorkerRegistration()
Set: ƒ Set()
ShadowRoot: ƒ ShadowRoot()
SharedStorage: ƒ SharedStorage()
SharedStorageAppendMethod: ƒ SharedStorageAppendMethod()
SharedStorageClearMethod: ƒ SharedStorageClearMethod()
SharedStorageDeleteMethod: ƒ SharedStorageDeleteMethod()
SharedStorageModifierMethod: ƒ SharedStorageModifierMethod()
SharedStorageSetMethod: ƒ SharedStorageSetMethod()
SharedStorageWorklet: ƒ SharedStorageWorklet()
SharedWorker: ƒ SharedWorker()
SnapEvent: ƒ SnapEvent()
SourceBuffer: ƒ SourceBuffer()
SourceBufferList: ƒ SourceBufferList()
SpeechGrammar: ƒ SpeechGrammar()
SpeechGrammarList: ƒ SpeechGrammarList()
SpeechRecognition: ƒ SpeechRecognition()
SpeechRecognitionErrorEvent: ƒ SpeechRecognitionErrorEvent()
SpeechRecognitionEvent: ƒ SpeechRecognitionEvent()
SpeechRecognitionPhrase: ƒ SpeechRecognitionPhrase()
SpeechSynthesis: ƒ SpeechSynthesis()
SpeechSynthesisErrorEvent: ƒ SpeechSynthesisErrorEvent()
SpeechSynthesisEvent: ƒ SpeechSynthesisEvent()
SpeechSynthesisUtterance: ƒ SpeechSynthesisUtterance()
SpeechSynthesisVoice: ƒ SpeechSynthesisVoice()
StaticRange: ƒ StaticRange()
StereoPannerNode: ƒ StereoPannerNode()
Storage: ƒ Storage()
StorageBucket: ƒ StorageBucket()
StorageBucketManager: ƒ StorageBucketManager()
StorageEvent: ƒ StorageEvent()
StorageManager: ƒ StorageManager()
String: ƒ String()
StylePropertyMap: ƒ StylePropertyMap()
StylePropertyMapReadOnly: ƒ StylePropertyMapReadOnly()
StyleSheet: ƒ StyleSheet()
StyleSheetList: ƒ StyleSheetList()
SubmitEvent: ƒ SubmitEvent()
Subscriber: ƒ Subscriber()
SubtleCrypto: ƒ SubtleCrypto()
Summarizer: ƒ Summarizer()
SuppressedError: ƒ SuppressedError()
Symbol: ƒ Symbol()
SyncManager: ƒ SyncManager()
SyntaxError: ƒ SyntaxError()
TaskAttributionTiming: ƒ TaskAttributionTiming()
TaskController: ƒ TaskController()
TaskPriorityChangeEvent: ƒ TaskPriorityChangeEvent()
TaskSignal: ƒ TaskSignal()
Text: ƒ Text()
TextDecoder: ƒ TextDecoder()
TextDecoderStream: ƒ TextDecoderStream()
TextEncoder: ƒ TextEncoder()
TextEncoderStream: ƒ TextEncoderStream()
TextEvent: ƒ TextEvent()
TextFormat: ƒ TextFormat()
TextFormatUpdateEvent: ƒ TextFormatUpdateEvent()
TextMetrics: ƒ TextMetrics()
TextTrack: ƒ TextTrack()
TextTrackCue: ƒ TextTrackCue()
TextTrackCueList: ƒ TextTrackCueList()
TextTrackList: ƒ TextTrackList()
TextUpdateEvent: ƒ TextUpdateEvent()
TimeRanges: ƒ TimeRanges()
ToggleEvent: ƒ ToggleEvent()
Touch: ƒ Touch()
TouchEvent: ƒ TouchEvent()
TouchList: ƒ TouchList()
TrackEvent: ƒ TrackEvent()
TransformStream: ƒ TransformStream()
TransformStreamDefaultController: ƒ TransformStreamDefaultController()
TransitionEvent: ƒ TransitionEvent()
Translator: ƒ Translator()
TreeWalker: ƒ TreeWalker()
TrustedHTML: ƒ TrustedHTML()
TrustedScript: ƒ TrustedScript()
TrustedScriptURL: ƒ TrustedScriptURL()
TrustedTypePolicy: ƒ TrustedTypePolicy()
TrustedTypePolicyFactory: ƒ TrustedTypePolicyFactory()
TypeError: ƒ TypeError()
UIEvent: ƒ UIEvent()
URIError: ƒ URIError()
URL: ƒ URL()
URLPattern: ƒ URLPattern()
URLSearchParams: ƒ URLSearchParams()
USB: ƒ USB()
USBAlternateInterface: ƒ USBAlternateInterface()
USBConfiguration: ƒ USBConfiguration()
USBConnectionEvent: ƒ USBConnectionEvent()
USBDevice: ƒ USBDevice()
USBEndpoint: ƒ USBEndpoint()
USBInTransferResult: ƒ USBInTransferResult()
USBInterface: ƒ USBInterface()
USBIsochronousInTransferPacket: ƒ USBIsochronousInTransferPacket()
USBIsochronousInTransferResult: ƒ USBIsochronousInTransferResult()
USBIsochronousOutTransferPacket: ƒ USBIsochronousOutTransferPacket()
USBIsochronousOutTransferResult: ƒ USBIsochronousOutTransferResult()
USBOutTransferResult: ƒ USBOutTransferResult()
Uint8Array: ƒ Uint8Array()
Uint8ClampedArray: ƒ Uint8ClampedArray()
Uint16Array: ƒ Uint16Array()
Uint32Array: ƒ Uint32Array()
UserActivation: ƒ UserActivation()
VTTCue: ƒ VTTCue()
ValidityState: ƒ ValidityState()
VideoColorSpace: ƒ VideoColorSpace()
VideoDecoder: ƒ VideoDecoder()
VideoEncoder: ƒ VideoEncoder()
VideoFrame: ƒ VideoFrame()
VideoPlaybackQuality: ƒ VideoPlaybackQuality()
ViewTimeline: ƒ ViewTimeline()
ViewTransition: ƒ ViewTransition()
ViewTransitionTypeSet: ƒ ViewTransitionTypeSet()
Viewport: ƒ Viewport()
VirtualKeyboard: ƒ VirtualKeyboard()
VirtualKeyboardGeometryChangeEvent: ƒ VirtualKeyboardGeometryChangeEvent()
VisibilityStateEntry: ƒ VisibilityStateEntry()
VisualViewport: ƒ VisualViewport()
WGSLLanguageFeatures: ƒ WGSLLanguageFeatures()
WakeLock: ƒ WakeLock()
WakeLockSentinel: ƒ WakeLockSentinel()
WaveShaperNode: ƒ WaveShaperNode()
WeakMap: ƒ WeakMap()
WeakRef: ƒ WeakRef()
WeakSet: ƒ WeakSet()
WebAssembly: WebAssembly {compile: ƒ, validate: ƒ, instantiate: ƒ, compileStreaming: ƒ, instantiateStreaming: ƒ, …}
WebGL2RenderingContext: ƒ WebGL2RenderingContext()
WebGLActiveInfo: ƒ WebGLActiveInfo()
WebGLBuffer: ƒ WebGLBuffer()
WebGLContextEvent: ƒ WebGLContextEvent()
WebGLFramebuffer: ƒ WebGLFramebuffer()
WebGLObject: ƒ WebGLObject()
WebGLProgram: ƒ WebGLProgram()
WebGLQuery: ƒ WebGLQuery()
WebGLRenderbuffer: ƒ WebGLRenderbuffer()
WebGLRenderingContext: ƒ WebGLRenderingContext()
WebGLSampler: ƒ WebGLSampler()
WebGLShader: ƒ WebGLShader()
WebGLShaderPrecisionFormat: ƒ WebGLShaderPrecisionFormat()
WebGLSync: ƒ WebGLSync()
WebGLTexture: ƒ WebGLTexture()
WebGLTransformFeedback: ƒ WebGLTransformFeedback()
WebGLUniformLocation: ƒ WebGLUniformLocation()
WebGLVertexArrayObject: ƒ WebGLVertexArrayObject()
WebKitCSSMatrix: ƒ DOMMatrix()
WebKitMutationObserver: ƒ MutationObserver()
WebSocket: ƒ WebSocket()
WebSocketError: ƒ WebSocketError()
WebSocketStream: ƒ WebSocketStream()
WebTransport: ƒ WebTransport()
WebTransportBidirectionalStream: ƒ WebTransportBidirectionalStream()
WebTransportDatagramDuplexStream: ƒ WebTransportDatagramDuplexStream()
WebTransportError: ƒ WebTransportError()
WheelEvent: ƒ WheelEvent()
Window: ƒ Window()
WindowControlsOverlay: ƒ WindowControlsOverlay()
WindowControlsOverlayGeometryChangeEvent: ƒ WindowControlsOverlayGeometryChangeEvent()
Worker: ƒ Worker()
Worklet: ƒ Worklet()
WritableStream: ƒ WritableStream()
WritableStreamDefaultController: ƒ WritableStreamDefaultController()
WritableStreamDefaultWriter: ƒ WritableStreamDefaultWriter()
XMLDocument: ƒ XMLDocument()
XMLHttpRequest: ƒ XMLHttpRequest()
XMLHttpRequestEventTarget: ƒ XMLHttpRequestEventTarget()
XMLHttpRequestUpload: ƒ XMLHttpRequestUpload()
XMLSerializer: ƒ XMLSerializer()
XPathEvaluator: ƒ XPathEvaluator()
XPathExpression: ƒ XPathExpression()
XPathResult: ƒ XPathResult()
XRAnchor: ƒ XRAnchor()
XRAnchorSet: ƒ XRAnchorSet()
XRBoundedReferenceSpace: ƒ XRBoundedReferenceSpace()
XRCPUDepthInformation: ƒ XRCPUDepthInformation()
XRCamera: ƒ XRCamera()
XRDOMOverlayState: ƒ XRDOMOverlayState()
XRDepthInformation: ƒ XRDepthInformation()
XRFrame: ƒ XRFrame()
XRHand: ƒ XRHand()
XRHitTestResult: ƒ XRHitTestResult()
XRHitTestSource: ƒ XRHitTestSource()
XRInputSource: ƒ XRInputSource()
XRInputSourceArray: ƒ XRInputSourceArray()
XRInputSourceEvent: ƒ XRInputSourceEvent()
XRInputSourcesChangeEvent: ƒ XRInputSourcesChangeEvent()
XRJointPose: ƒ XRJointPose()
XRJointSpace: ƒ XRJointSpace()
XRLayer: ƒ XRLayer()
XRLightEstimate: ƒ XRLightEstimate()
XRLightProbe: ƒ XRLightProbe()
XRPose: ƒ XRPose()
XRRay: ƒ XRRay()
XRReferenceSpace: ƒ XRReferenceSpace()
XRReferenceSpaceEvent: ƒ XRReferenceSpaceEvent()
XRRenderState: ƒ XRRenderState()
XRRigidTransform: ƒ XRRigidTransform()
XRSession: ƒ XRSession()
XRSessionEvent: ƒ XRSessionEvent()
XRSpace: ƒ XRSpace()
XRSystem: ƒ XRSystem()
XRTransientInputHitTestResult: ƒ XRTransientInputHitTestResult()
XRTransientInputHitTestSource: ƒ XRTransientInputHitTestSource()
XRView: ƒ XRView()
XRViewerPose: ƒ XRViewerPose()
XRViewport: ƒ XRViewport()
XRWebGLBinding: ƒ XRWebGLBinding()
XRWebGLDepthInformation: ƒ XRWebGLDepthInformation()
XRWebGLLayer: ƒ XRWebGLLayer()
XSLTProcessor: ƒ XSLTProcessor()
console: console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
decodeURI: ƒ decodeURI()
decodeURIComponent: ƒ decodeURIComponent()
encodeURI: ƒ encodeURI()
encodeURIComponent: ƒ encodeURIComponent()
escape: ƒ escape()
eval: ƒ eval()
globalThis: Window {window: Window, self: Window, document: document, name: '', location: Location, …}
isFinite: ƒ isFinite()
isNaN: ƒ isNaN()
offscreenBuffering: true
parseFloat: ƒ parseFloat()
parseInt: ƒ parseInt()
undefined: undefined
unescape: ƒ unescape()
webkitMediaStream: ƒ MediaStream()
webkitRTCPeerConnection: ƒ RTCPeerConnection()
webkitSpeechGrammar: ƒ SpeechGrammar()
webkitSpeechGrammarList: ƒ SpeechGrammarList()
webkitSpeechRecognition: ƒ SpeechRecognition()
webkitSpeechRecognitionError: ƒ SpeechRecognitionErrorEvent()
webkitSpeechRecognitionEvent: ƒ SpeechRecognitionEvent()
webkitURL: ƒ URL()
[[Prototype]]: Window

2025年12月現在で、全部で1204のプロパティが含まれているようです。

Windowオブジェクト自体のプロパティ

まずはconsole.logで上の方に明るい色で出力されるWindowオブジェクト自体のプロパティを見てみます。

alert / confirm / prompt

アラート・確認メッセージ・入力プロンプトを表示する関数です。これらのメソッドは実行が終了するまでブラウザのレンダリングをブロックします。

今ではブラウザ独自のアラート・確認メッセージ・入力プロンプトが使われるようになりましたが、昔はOSネイティブのMsgBoxなどが表示された時代もあり、表示時に音が出たりしたこともありました。ブラウザの開発ツールが普及する前はconsole.logではなくalertでデバッグしていたこともあるかもしれません。

atob / btoa

文字列をBase64形式でエンコード・デコードする関数です。

blur / focus

ブラウザウィンドウに対してフォーカスしたりフォーカスアウトしたりする関数です。近年のブラウザでは、自身のウェブサイトで開いたポップアップウィンドウ以外では機能しないようです。

caches

キャッシュストレージにアクセスするオブジェクトを返します。

cancelAnimationFrame / requestAnimationFrame

requestAnimationFrameで次の再描画の前に実行する関数を指定することができます。cancelAnimationFramerequestAnimationFrameで登録した関数の実行をキャンセルすることができます。

この関数に指定された関数は1回だけ実行するため、継続的(毎フレーム)に実行する場合は、指定する関数内で再度requestAnimationFrameを実行して次フレームに実行する関数を登録する必要があります。

cancelIdleCallback / requestIdleCallback

requestIdleCallbackでブラウザがアイドル状態の時に実行する関数を指定することができます。cancelIdleCallbackrequestIdleCallbackで登録した関数の実行をキャンセルすることができます。

第2引数にtimeoutを指定することができ、timeout時間経過までの間にアイドル状態にならず実行されなかった場合、強制的に実行させることができます。

captureEvents / releaseEvents

指定した種類のイベントをすべて取得する、かなり昔の関数だったようです。Chromeでは関数自体はまだ生きていそうですが、引数に渡す定数がそもそも削除されているため、使用も困難でしょう。

chrome

詳細は不明ながら、Chromeで使用できるオブジェクトのようです。主にページロード時のパフォーマンス関連のデータが取得できるようです。今ではPerformance APIやTiming APIに取って代わられているようです。

clearInterval / clearTimeout / setInterval / setTimeout

一定時間ごと、あるいは指定時間後に関数を実行する関数です。昔から存在し、今でも現役であまり仕様の変わっていない珍しい関数です。clear系の関数はset系の関数を実行した際に返ってくる値を引数にすると実行できます。

clientInformation / navigator

ユーザエージェントの状態にアクセスできるインタフェースです。ブラウザの種類やバージョンの判定に長らく使用されています。

clientInformationnavigatorの別名です。こちらもかなり古くから存在するようです。

close

ウィンドウを閉じる関数です。近年のブラウザでは、自身のウェブサイトで開いたウィンドウ以外を閉じることはできなくなっています。

closed

ウィンドウが閉じられたかどうかを表す論理値です。主にwindow.openで開いた子ウィンドウが閉じられているかどうかを判定するのに使います。

cookieStore

Cookie Store APIのインタフェースです。これまではdocument.cookieでCookieにアクセスしていましたが、Workerからもアクセスできる新しめのAPIです。

createImageBitmap

ImageBitmapを作成する関数です。引数で画像の一部分を切り出して作成することもできます。

ImageBitmapはCanvasに画像等のフレーム描画する際の、中間データとして扱うのに適したオブジェクトです。

credentialless

ウィンドウが信頼性の無い<iframe>で読み込まれたかどうかを表す論理値です。COEPのポリシーに一致しない場合にtrueとなる他、<iframe>credentialless属性を付けて読み込むことでもtrueとすることができます。

crossOriginIsolated

ウェブサイトがオリジン間分離状態にあるかどうかを表す論理値です。オリジン間分離状態にある場合は、一部の機能が使えるようになったり高精度になったりします。

crypto

Crypto APIのインタフェースです。暗号に関連する様々なAPIを提供しますが、保護されていないコンテキスト(httpなど)では、乱数生成以外は使用できません。

customElements

カスタム要素関連のAPIのインタフェースです。独自にHTMLクラスを拡張した要素を定義することができます。

devicePixelRatio

デバイスのピクセル比が格納されているプロパティです。1pxが物理デバイスで何dotに相当するかの比率を表します。1pxが1dotの場合は1、スマホなどの高DPIのデバイスでは数字が大きくなっていきます。

document

ウィンドウに含まれる文書オブジェクトを返します。

documentPictureInPicture

Picture in Picture APIのインタフェースです。<video>だけでなく、任意の要素をPicture in Pictureとして表示できる機能です。

event

イベントハンドラ内で参照すると、現在処理しているイベントオブジェクトを返しますが、現在では非推奨です。

external

ブラウザ独自の機能を提供するオブジェクトでした。現在実行できる関数はすべてダミーです。

お気に入りに登録する機能や検索プロバイダを追加する機能が実装されているブラウザがありました。

fence

現在の文書コンテキストに対するFenceオブジェクトを返します。<fencedframe>または一部の<iframe>内のwindowオブジェクトで使用可能です。

<fencedframe>はプライバシーサンドボックスの機能で<iframe>の制限をより強化したものです。ただし、プライバシーサンドボックス自体は廃止に向かっているため、今後この機能がどうなるのかは不明です。

fetch / fetchLater

fetch APIの関数です。fetchLaterは遅延実行用の関数です。

find

引数に指定したテキストをウィンドウ内から検索する関数です。ブラウザによっては見つかったテキストを選択状態にします。

frameElement

ウィンドウが埋め込まれている場合、埋め込んでいる要素(<iframe>など)を返します。

frames

現在のウィンドウに含まれている<frame><iframe>のwindowオブジェクトを配列風のオブジェクトに列挙して返します。

getComputedStyle

CSSが適用された後のCSSプロパティの値を取得する関数です。

getScreenDetails

Window Management APIのインタフェースを取得する関数です。複数のディスプレイの情報を取得することができる機能です。

getSelection

現在選択されている範囲やキャレットの位置を表すSelectionオブジェクトを取得する関数です。

history

History APIのインタフェースです。自身のオリジン内のブラウザの履歴を移動したり操作したりすることができます。

indexedDB

IndexedDB APIのインタフェースです。

innerHeight / innerWidth

ウィンドウ内部の高さ・幅のピクセルを返します。スクロールバーの高さ・幅を含みます。

isSecureContext

ウィンドウが保護されたコンテキストであるかどうかの論理値です。httpsやlocalhostではtrueとなり、httpなどではfalseとなります。

launchQueue

PWAの起動ハンドラAPIのインタフェースです。PWA起動時のナビゲーションをカスタムすることができるようです。

length

現在のウィンドウに含まれている<frame><iframe>の数を返します。

localStorage / sessionStorage

自身のオリジンのローカルストレージセッションストレージにアクセスするためのAPIのインタフェースです。

location

現在のページの位置を表すオブジェクトの参照を返します。hrefで現在のページのURLを取得できることは有名ですが、他にもprotocolでプロトコル部分のみ、searchでパラメータのみ、hashでフラグメント部分のみを取得することもできます。

locationbar / menubar / personalbar / scrollbars / statusbar / toolbar

ロケーションバー(アドレスバー)・メニューバー・ブックマークバー・スクロールバー・ステータスバー・ツールバーに関するオブジェクトを返します。ただしプライバシー等の観点から現在は内容の制約が大きく、取得できたとしても表示状態のみのようです。

matchMedia

ウィンドウが引数に指定したメディアクエリに一致するかどうかを表すMediaQueryListオブジェクトを返す関数です。

MediaQueryListchangeイベントを捕捉できるため、メディアクエリの変化時にイベントハンドラを実行することもできます。

moveBy / moveTo / reresizeBy / resizeTo

ウィンドウを移動・リサイズ・スクロールする関数です。~Byは現在位置からの相対座標、~Toは絶対座標(幅・高さ)で指定します。移動やリサイズは、近年のブラウザでは自身のウェブサイトで開いたポップアップウィンドウ以外では機能しないようです。

name

ウィンドウ(性格にはコンテキスト)に付けられた名前を返します。<a>タグのtarget属性が指定されている場合や、window.open関数の第2引数に指定された文字列が、このプロパティの値となります。

ナビゲーションAPIのインタフェースです。Hisotry APIを改善した機能が多数揃っています。

on~(イベントリスナ)

ブラウザウィンドウに対して、各種イベントハンドラを登録することができるプロパティです。addEventListenerと異なり、イベント1種類に関数1つしか登録できません。

onabortonafterprintonanimationendonanimationiterationonanimationstartonappinstalledonauxclickonbeforeinputonbeforeinstallpromptonbeforematchonbeforeprintonbeforetoggleonbeforeunloadonbeforexrselectonbluroncanceloncanplayoncanplaythroughonchangeonclickoncloseoncommandoncontentvisibilityautostatechangeoncontextlostoncontextmenuoncontextrestoredoncuechangeondblclickondevicemotionondeviceorientationondeviceorientationabsoluteondragondragendondragenterondragleaveondragoverondragstartondropondurationchangeonemptiedonendedonerroronfocusonformdataongamepadconnectedongamepaddisconnectedongotpointercaptureonhashchangeoninputoninvalidonkeydownonkeypressonkeyuponlanguagechangeonloadonloadeddataonloadedmetadataonloadstartonlostpointercaptureonmessageonmessageerroronmousedownonmouseenteronmouseleaveonmousemoveonmouseoutonmouseoveronmouseuponmousewheelonofflineononlineonpagehideonpagerevealonpageshowonpageswaponpauseonplayonplayingonpointercancelonpointerdownonpointerenteronpointerleaveonpointermoveonpointeroutonpointeroveronpointerrawupdateonpointeruponpopstateonprogressonratechangeonrejectionhandledonresetonresizeonscrollonscrollendonscrollsnapchangeonscrollsnapchangingonsearchonsecuritypolicyviolationonseekedonseekingonselectonselectionchangeonselectstartonslotchangeonstalledonstorageonsubmitonsuspendontimeupdateontoggleontransitioncancelontransitionendontransitionrunontransitionstartonunhandledrejectiononunloadonvolumechangeonwaitingonwebkitanimationendonwebkitanimationiterationonwebkitanimationstartonwebkittransitionendonwheel

open

新しいウィンドウやポップアップウィンドウを開く関数です。第3引数の内容とブラウザの仕様によってウィンドウの開き方が変わります。ポップアップブロックが有効の場合は、開かないことがあります。

opener

自身のウィンドウを開いたウィンドウのオブジェクトを返します。<a>タグのtarget属性が指定して開いた場合や、window.openを用いてウィンドウを開いた場合に、そのウィンドウを開いた親となる画面のwindowオブジェクトにアクセスできます。

origin

ウィンドウのオリジンを返します。大抵の場合は開いているURLのドメイン部分となります。

originAgentCluster

現在のウィンドウがオリジンキー付きエージェントクラスタに属しているかどうかをを表す論理値です。trueの場合は同一ドメイン内であってもオリジンが異なる場合に、一部の機能に制約をかけることができます。

この値はOrigin-Agent-Clusterレスポンスヘッダで制御するようです。

outerHeight / outerWidth

タイトルバーやアドレスバーなどを含む、ブラウザウィンドウ全体の高さ・幅のピクセルを返します。

pageXOffset / pageYOffset / scrollX / scrollY

pageXOffsetpageYOffsetscrollXscrollYの別名です。

parent

現在のウィンドウが<frame><iframe>内の場合は親のwindowが返されます。親が存在しない場合は自身のwindowが返されます。

performance

Performance APIのインタフェースです。現在のWebページ表示に関わるパフォーマンス関連の情報を取得することができます。

postMessage

windowオブジェクト間でデータをやり取りするための関数です。受け取る側はwindowに対して発火されるmessageイベントを捕捉することで受け取れます。

print

ブラウザの印刷ダイアログを表示する関数です。

queryLocalFonts

ローカルにインストールされているフォントの一覧を取得する関数です。ユーザが明示的に許可する必要があります。

queueMicrotask

マイクロタスクをキューに入れる関数です。

reportError

グローバルなスコープに対してエラーを送出する関数です。

scheduler

Task Scheduling APIのインタフェースです。JavaScriptタスクの制御が行えます。

screen

画面(ブラウザ外を含む)に関する情報が格納されたオブジェクトを返します。画面の幅や高さ、タスクバーを除いた画面の幅や高さなどを取得できます。

screenLeft / screenTop / screenX / screenY

ウィンドウの位置のピクセルを返します。

screenLeftscreenTopscreenXscreenYの別名です。

scroll / scrollBy / scrollTo

ウィンドウを指定した座標にスクロールする関数です。scrollscrollToは同じ機能で絶対座標に、scrollByは現在のスクロール位置からの相対座標にスクロールします。

self

自身のウィンドウを表すプロパティです。

Workerのグローバルスコープにも自身を表すselfプロパティが存在するため、グローバルスコープにおいて自身を表すのに便利です。

sharedStorage

Shared Storage APIのインタフェースです。プライバシーサンドボックスの機能で、サイト間で共有のストレージにアクセスすることができる機能です。ただし、プライバシーサンドボックス自体は廃止に向かっているため、今後この機能がどうなるのかは不明です。

showDirectoryPicker / showOpenFilePicker / showSaveFilePicker

ローカルファイルのディレクトリを選択するブラウザのダイアログ、ファイルを開くブラウザのダイアログ、ファイルの保存先を選択するブラウザのダイアログをそれぞれ表示する関数です。

speechSynthesis

Web Speech APIのインタフェースです。OSの音声合成や音声認識を使用することができる機能です。

status

ステータスバーに表示される文字列を指定するプロパティでした。現在はこのプロパティを変更してもステータスバーの表示は変更しない仕様になっています。

stop

ウィンドウの読み込みを中止する関数です。ブラウザの読み込み中止ボタン(ページの読み込み中に再読み込みボタンが変化したボタン)を押下するのと同じ機能です。

structuredClone

オブジェクトをディープコピーする関数です。

styleMedia

window.matchMediaの前身の機能で、ウィンドウがメディアクエリに一致するかを評価するAPIのインタフェースでした。

top

自身のウィンドウの最上位のウィンドウを返します。平たく言えばwindow.parentが変わらなくなるまで再帰的に参照したwindowオブジェクトです。

trustedTypes

Trusted Types APIのインタフェースです。ポリシー関数を定義することで、入力値がそのポリシーに準拠しているかどうかを検証し、検証を通過した値のみを使用することができます。主にXSS攻撃対策に使われます。

viewport

Viewport Segments APIのインタフェースです。

主にビューポートが2つ以上となる折りたたみデバイスで、画面の表示をそのデバイスに対して最適化するのに使われます(それぞれのビューポートに対してレイアウトするのか、またいでレイアウトするのか等)。

visualViewport

Visual Viewport APIのインタフェースです。ビューポートのうち、視覚的に表示されている部分のこと(拡大している場合は拡大した部分、仮想キーボードが表示されている場合は仮想キーボードを除いだ部分)を指します。

webkit~

webkit系ブラウザ(Chromium系やSafari)での独自機能のプロパティや関数です。主に標準化されていない機能の実験として使われることが多いです。

  • webkitCancelAnimationFrame
  • webkitRequestAnimationFrame
  • webkitRequestFileSystem
  • webkitResolveLocalFileSystemURL

window

自身のwindowオブジェクトを返します。

その他のプロパティ

次にconsole.logで下の方に暗い色で出力されるプロパティを見てみます。

一般的にconsole.logで暗い色で出力されるプロパティは継承元クラスやオブジェクトのプロパティですが、自分で定義したオブジェクト以外のプロパティ名の濃淡の区別は不明です。グローバルあるいはネイティブプロパティを継承しているという意味合いでしょうか。

基本的にネイティブ(標準組み込み)な各種クラスやオブジェクトが含まれています。以下は一例です。

  • 基本的な組み込みオブジェクト・インタフェース
    • ArrayDateErrorFunctionMathObjectなど
    • BigIntNumberStringなど
    • ClipboardFileGeolocationPromiseWorkerなど
  • 組み込み関数
    • encodeURIescapeevalisFiniteparseIntなど
  • HTML DOM API
    • HTMLElementHTMLInputElementなど
  • CSSOM インタフェース
    • CSSCSSImageValueCSSMediaRuleなど
  • SVG API
    • SVGSVGElementSVGPathElementSVGGElementなど

以下は上記のようなクラスやオブジェクトとは少し毛色の違うオブジェクトです。

Infinity

無限大を表す数値です。

NaN

数値ではないことを表す値です。

console

Console APIのインタフェースです。ブラウザの開発者ツールのコンソールへアクセスする機能です。

globalThis

グローバル空間でのthisの値を返します。ページ上で実行されるスクリプトではwindowオブジェクトが返ってきます。

offscreenBuffering

オフスクリーン領域(画面に表示されていない領域)の描画をバッファするかどうかを指定するプロパティだったようです。現在も機能しているかは不明です。

undefined

プリミティブ値undefinedを返します。

古いブラウザではこのプロパティを上書きできてしまいますが、最近のブラウザでは書き込みできなくなっています。ただしundefinedは予約語ではないため、グローバルスコープ以外ではundefinedという名前の変数を宣言することは可能です。

おわり

windowオブジェクトはwindowオブジェクトとしてのプロパティと、グローバルオブジェクトとしてのプロパティが複合して存在するためconsole.logでは中々の量となりますが、紐解くと案外シンプルでした。

新機能は既存機能への追加機能でない場合はグローバルオブジェクトに追加されることが多いため、常に仕様書を追いかけている方でもない限り、たまにwindowオブジェクトの中身を覗いてみると新しい発見があって面白いかもしれません。

参考

カテゴリ: JavaScript