Window interface

DOM 문서가 포함된 창입니다. 문서 속성은 해당 창에 로드된 DOM 문서를 가리킵니다.

Extends

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

속성

clientInformation
closed

창이 닫혀 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

customElements

지정된 이름을 지정된 생성자에 자치 사용자 지정 요소로 매핑하여 새 사용자 지정 요소를 정의합니다.

devicePixelRatio
document
event
external
frameElement
frames
history
innerHeight
innerWidth
length
location
locationbar

위치 표시줄이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

menubar

메뉴 모음이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

msCrypto
name
navigator
ondevicemotion

보안 컨텍스트에서만 사용할 수 있습니다.

ondeviceorientation

보안 컨텍스트에서만 사용할 수 있습니다.

onorientationchange
opener
orientation
outerHeight
outerWidth
pageXOffset
pageYOffset
parent

부모 WindowProxy 또는 자체를 참조합니다.

부모에서 이미 제거된 iframe의 contentWindow와 같은 경우와 같은 경우는 거의 null일 수 없습니다.

personalbar

개인 표시줄이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

powerbi
powerBISDKGlobalServiceInstanceName
screen
screenLeft
screenTop
screenX
screenY
scrollbars

스크롤 막대가 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

scrollX
scrollY
self
speechSynthesis
status
statusbar

상태 표시줄이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

toolbar

도구 모음이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

top
visualViewport
window

상속된 속성

caches

보안 컨텍스트에서만 사용할 수 있습니다.

crossOriginIsolated
crypto
indexedDB
isSecureContext
localStorage
onabort

사용자가 다운로드를 중단하면 발생합니다.

onafterprint
onanimationcancel
onanimationend
onanimationiteration
onanimationstart
onauxclick
onbeforeinput
onbeforeprint
onbeforeunload
onblur

개체가 입력 포커스를 잃을 때 발생합니다.

oncancel
oncanplay

재생이 가능하지만 추가 버퍼링이 필요할 때 발생합니다.

oncanplaythrough
onchange

개체 또는 선택 영역의 내용이 변경되면 발생합니다.

onclick

사용자가 개체의 왼쪽 마우스 단추를 클릭하면 발생합니다.

onclose
oncontextmenu

사용자가 클라이언트 영역에서 마우스 오른쪽 단추를 클릭하여 상황에 맞는 메뉴를 열면 발생합니다.

oncuechange
ondblclick

사용자가 개체를 두 번 클릭하면 발생합니다.

ondrag

끌기 작업 중에 원본 개체에서 계속 실행됩니다.

ondragend

사용자가 끌기 작업을 종료할 때 마우스를 놓으면 원본 개체에서 발생합니다.

ondragenter

사용자가 개체를 유효한 놓기 대상으로 끌면 대상 요소에서 발생합니다.

ondragleave

사용자가 끌기 작업 중에 유효한 놓기 대상에서 마우스를 이동할 때 대상 개체에서 발생합니다.

ondragover

사용자가 개체를 유효한 놓기 대상 위로 끌어 놓는 동안 대상 요소에서 지속적으로 발생합니다.

ondragstart

사용자가 텍스트 선택 영역 또는 선택한 개체를 끌기 시작하면 원본 개체에서 발생합니다.

ondrop
ondurationchange

기간 특성이 업데이트되면 발생합니다.

onemptied

미디어 요소가 초기 상태로 다시 설정되면 발생합니다.

onended

재생 종료에 도달하면 발생합니다.

onerror

개체를 로드하는 동안 오류가 발생할 때 발생합니다.

onfocus

개체가 포커스를 받으면 발생합니다.

onformdata
ongamepadconnected
ongamepaddisconnected
ongotpointercapture
onhashchange
oninput
oninvalid
onkeydown

사용자가 키를 누르면 발생합니다.

onkeypress

사용자가 영숫자 키를 누르면 발생합니다.

onkeyup

사용자가 키를 놓으면 발생합니다.

onlanguagechange
onload

브라우저에서 개체를 로드한 직후에 발생합니다.

onloadeddata

미디어 데이터가 현재 재생 위치에 로드될 때 발생합니다.

onloadedmetadata

미디어의 기간 및 크기가 결정되면 발생합니다.

onloadstart

Internet Explorer에서 미디어 데이터를 검색하기 시작할 때 발생합니다.

onlostpointercapture
onmessage
onmessageerror
onmousedown

사용자가 마우스 단추로 개체를 클릭하면 발생합니다.

onmouseenter
onmouseleave
onmousemove

사용자가 개체 위로 마우스를 이동할 때 발생합니다.

onmouseout

사용자가 개체의 경계 밖으로 마우스 포인터를 이동할 때 발생합니다.

onmouseover

사용자가 마우스 포인터를 개체로 이동할 때 발생합니다.

onmouseup

마우스가 개체 위에 있는 동안 사용자가 마우스 단추를 놓으면 발생합니다.

onoffline
ononline
onpagehide
onpageshow
onpause

재생이 일시 중지될 때 발생합니다.

onplay

재생 메서드가 요청되면 발생합니다.

onplaying

오디오 또는 비디오가 재생되기 시작할 때 발생합니다.

onpointercancel
onpointerdown
onpointerenter
onpointerleave
onpointermove
onpointerout
onpointerover
onpointerup
onpopstate
onprogress

미디어 데이터를 다운로드하는 동안 진행률을 나타내기 위해 발생합니다.

onratechange

재생 속도가 증가하거나 감소할 때 발생합니다.

onrejectionhandled
onreset

사용자가 양식을 다시 설정할 때 발생합니다.

onresize
onscroll

사용자가 개체의 스크롤 막대에 있는 스크롤 상자의 위치를 변경할 때 발생합니다.

onsecuritypolicyviolation
onseeked

검색 작업이 종료되면 발생합니다.

onseeking

현재 재생 위치가 이동될 때 발생합니다.

onselect

현재 선택 영역이 변경되면 발생합니다.

onselectionchange
onselectstart
onslotchange
onstalled

다운로드가 중지되었을 때 발생합니다.

onstorage
onsubmit
onsuspend

로드 작업이 의도적으로 중단된 경우에 발생합니다.

ontimeupdate

현재 재생 위치를 나타내기 위해 발생합니다.

ontoggle
ontouchcancel
ontouchend
ontouchmove
ontouchstart
ontransitioncancel
ontransitionend
ontransitionrun
ontransitionstart
onunhandledrejection
onunload
onvolumechange

볼륨이 변경되거나 재생이 음소거되거나 음소거되지 않은 경우에 발생합니다.

onwaiting

비디오 리소스의 다음 프레임을 사용할 수 없으므로 재생이 중지되면 발생합니다.

onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel
origin
performance
sessionStorage

메서드

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
addEventListener<K>(K, (this: Window, ev: WindowEventMap[K]) => any, boolean | AddEventListenerOptions)
alert(any)
blur()
cancelIdleCallback(number)
captureEvents()
close()

창을 닫습니다.

confirm(string)
focus()

포커스를 창의 검색 컨텍스트(있는 경우)로 이동합니다.

getComputedStyle(Element, null | string)
getSelection()
matchMedia(string)
moveBy(number, number)
moveTo(number, number)
open(string | URL, string, string)
postMessage(any, string, Transferable[])

지정된 창에 메시지를 게시합니다. 메시지는 구조화된 개체(예: 중첩된 개체 및 배열)일 수 있으며 JavaScript 값(문자열, 숫자, 날짜 개체 등)을 포함할 수 있으며 File Blob, FileList 및 ArrayBuffer 개체와 같은 특정 데이터 개체를 포함할 수 있습니다.

옵션의 전송 멤버에 나열된 개체는 복제뿐만 아니라 전송되므로 보내는 쪽에서 더 이상 사용할 수 없습니다.

대상 원본은 옵션의 targetOrigin 멤버를 사용하여 지정할 수 있습니다. 제공되지 않으면 기본값은 "/"입니다. 이 기본값은 메시지를 동일한 원본 대상으로만 제한합니다.

대상 창의 원본이 지정된 대상 원본과 일치하지 않으면 정보가 누출되지 않도록 메시지가 삭제됩니다. 원본에 관계없이 대상에 메시지를 보내려면 대상 원본을 "*"로 설정합니다.

전송 배열에 중복 개체가 포함되어 있거나 메시지를 복제할 수 없는 경우 "DataCloneError" DOMException을 throw합니다.

postMessage(any, WindowPostMessageOptions)
print()
prompt(string, string)
releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
removeEventListener<K>(K, (this: Window, ev: WindowEventMap[K]) => any, boolean | EventListenerOptions)
requestIdleCallback(IdleRequestCallback, IdleRequestOptions)
resizeBy(number, number)
resizeTo(number, number)
scroll(number, number)
scroll(ScrollToOptions)
scrollBy(number, number)
scrollBy(ScrollToOptions)
scrollTo(number, number)
scrollTo(ScrollToOptions)
stop()

문서 로드를 취소합니다.

상속된 메서드

atob(string)
btoa(string)
cancelAnimationFrame(number)
clearInterval(undefined | number)
clearTimeout(undefined | number)
createImageBitmap(ImageBitmapSource, ImageBitmapOptions)
createImageBitmap(ImageBitmapSource, number, number, number, number, ImageBitmapOptions)
dispatchEvent(Event)

가상 이벤트 이벤트를 대상으로 디스패치하고 이벤트의 취소 가능한 특성 값이 false이거나 preventDefault() 메서드가 호출되지 않은 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

fetch(URL | RequestInfo, RequestInit)
queueMicrotask(VoidFunction)
reportError(any)
requestAnimationFrame(FrameRequestCallback)
setInterval(TimerHandler, number, any[])
setTimeout(TimerHandler, number, any[])
structuredClone(any, StructuredSerializeOptions)

속성 세부 정보

clientInformation

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of navigator.

clientInformation: Navigator

속성 값

Navigator

closed

창이 닫혀 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

closed: boolean

속성 값

boolean

customElements

지정된 이름을 지정된 생성자에 자치 사용자 지정 요소로 매핑하여 새 사용자 지정 요소를 정의합니다.

customElements: CustomElementRegistry

속성 값

CustomElementRegistry

devicePixelRatio

devicePixelRatio: number

속성 값

number

document

document: Document

속성 값

Document

event

경고

이 API는 이제 사용되지 않습니다.

event: undefined | Event

속성 값

undefined | Event

external

경고

이 API는 이제 사용되지 않습니다.

external: External

속성 값

External

frameElement

frameElement: null | Element

속성 값

null | Element

frames

frames: Window

속성 값

Window

history

history: History

속성 값

History

innerHeight

innerHeight: number

속성 값

number

innerWidth

innerWidth: number

속성 값

number

length

length: number

속성 값

number

location

Location location

속성 값

Location

locationbar

위치 표시줄이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

locationbar: BarProp

속성 값

BarProp

menubar

메뉴 모음이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

menubar: BarProp

속성 값

BarProp

msCrypto

msCrypto: Crypto

속성 값

Crypto

name

name: string

속성 값

string

navigator

navigator: Navigator

속성 값

Navigator

ondevicemotion

보안 컨텍스트에서만 사용할 수 있습니다.

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

속성 값

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

ondeviceorientation

보안 컨텍스트에서만 사용할 수 있습니다.

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

속성 값

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

onorientationchange

경고

이 API는 이제 사용되지 않습니다.

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

속성 값

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

opener

opener: any

속성 값

any

orientation

경고

이 API는 이제 사용되지 않습니다.

orientation: number

속성 값

number

outerHeight

outerHeight: number

속성 값

number

outerWidth

outerWidth: number

속성 값

number

pageXOffset

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of scrollX.

pageXOffset: number

속성 값

number

pageYOffset

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of scrollY.

pageYOffset: number

속성 값

number

parent

부모 WindowProxy 또는 자체를 참조합니다.

부모에서 이미 제거된 iframe의 contentWindow와 같은 경우와 같은 경우는 거의 null일 수 없습니다.

parent: Window

속성 값

Window

personalbar

개인 표시줄이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

personalbar: BarProp

속성 값

BarProp

powerbi

powerbi: Service

속성 값

powerBISDKGlobalServiceInstanceName

powerBISDKGlobalServiceInstanceName?: string

속성 값

string

screen

screen: Screen

속성 값

Screen

screenLeft

screenLeft: number

속성 값

number

screenTop

screenTop: number

속성 값

number

screenX

screenX: number

속성 값

number

screenY

screenY: number

속성 값

number

scrollbars

스크롤 막대가 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

scrollbars: BarProp

속성 값

BarProp

scrollX

scrollX: number

속성 값

number

scrollY

scrollY: number

속성 값

number

self

self: Window & typeof globalThis

속성 값

Window & typeof globalThis

speechSynthesis

speechSynthesis: SpeechSynthesis

속성 값

SpeechSynthesis

status

경고

이 API는 이제 사용되지 않습니다.

status: string

속성 값

string

statusbar

상태 표시줄이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

statusbar: BarProp

속성 값

BarProp

toolbar

도구 모음이 표시되면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

toolbar: BarProp

속성 값

BarProp

top

top: null | Window

속성 값

null | Window

visualViewport

visualViewport: null | VisualViewport

속성 값

null | VisualViewport

window

window: Window & typeof globalThis

속성 값

Window & typeof globalThis

상속된 속성 세부 정보

caches

보안 컨텍스트에서만 사용할 수 있습니다.

caches: CacheStorage

속성 값

CacheStorage

WindowOrWorkerGlobalScope.caches에서 상속된

crossOriginIsolated

crossOriginIsolated: boolean

속성 값

boolean

WindowOrWorkerGlobalScope.crossOriginIsolated에서 상속된

crypto

crypto: Crypto

속성 값

Crypto

WindowOrWorkerGlobalScope.crypto에서 상속된

indexedDB

indexedDB: IDBFactory

속성 값

IDBFactory

WindowOrWorkerGlobalScope.indexedDB에서 상속된

isSecureContext

isSecureContext: boolean

속성 값

boolean

WindowOrWorkerGlobalScope.isSecureContext에서 상속된

localStorage

localStorage: Storage

속성 값

Storage

WindowLocalStorage.localStorage에서 상속된

onabort

사용자가 다운로드를 중단하면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onabort에서 상속된

onafterprint

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

속성 값

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

WindowEventHandlers.onafterprint에서 상속된

onanimationcancel

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

속성 값

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

GlobalEventHandlers.onanimationcancel에서 상속된

onanimationend

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

속성 값

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

GlobalEventHandlers.onanimationend에서 상속된

onanimationiteration

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

속성 값

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

GlobalEventHandlers.onanimationiteration에서 상속된

onanimationstart

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

속성 값

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

GlobalEventHandlers.onanimationstart에서 상속된

onauxclick

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

속성 값

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

GlobalEventHandlers.onauxclick에서 상속된

onbeforeinput

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

속성 값

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

GlobalEventHandlers.onbeforeinput에서 상속된

onbeforeprint

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

속성 값

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

WindowEventHandlers.onbeforeprint에서 상속된

onbeforeunload

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

속성 값

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

WindowEventHandlers.onbeforeunload에서 상속된

onblur

개체가 입력 포커스를 잃을 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onblur에서 상속된

oncancel

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

속성 값

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

GlobalEventHandlers.oncancel에서 상속된

oncanplay

재생이 가능하지만 추가 버퍼링이 필요할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.oncanplay에서 상속된

oncanplaythrough

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

속성 값

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

GlobalEventHandlers.oncanplaythrough에서 상속된

onchange

개체 또는 선택 영역의 내용이 변경되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onchange에서 상속된

onclick

사용자가 개체의 왼쪽 마우스 단추를 클릭하면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onclick에서 상속된

onclose

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

속성 값

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

GlobalEventHandlers.onclose에서 상속된

oncontextmenu

사용자가 클라이언트 영역에서 마우스 오른쪽 단추를 클릭하여 상황에 맞는 메뉴를 열면 발생합니다.

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

속성 값

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

GlobalEventHandlers.oncontextmenu에서 상속된

oncuechange

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

속성 값

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

GlobalEventHandlers.oncuechange에서 상속된

ondblclick

사용자가 개체를 두 번 클릭하면 발생합니다.

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

속성 값

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

GlobalEventHandlers.ondblclick에서 상속된

ondrag

끌기 작업 중에 원본 개체에서 계속 실행됩니다.

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

속성 값

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

GlobalEventHandlers.ondrag에서 상속된

ondragend

사용자가 끌기 작업을 종료할 때 마우스를 놓으면 원본 개체에서 발생합니다.

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

속성 값

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

GlobalEventHandlers.ondragend에서 상속된

ondragenter

사용자가 개체를 유효한 놓기 대상으로 끌면 대상 요소에서 발생합니다.

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

속성 값

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

GlobalEventHandlers.ondragenter에서 상속된

ondragleave

사용자가 끌기 작업 중에 유효한 놓기 대상에서 마우스를 이동할 때 대상 개체에서 발생합니다.

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

속성 값

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

GlobalEventHandlers.ondragleave에서 상속된

ondragover

사용자가 개체를 유효한 놓기 대상 위로 끌어 놓는 동안 대상 요소에서 지속적으로 발생합니다.

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

속성 값

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

GlobalEventHandlers.ondragover에서 상속된

ondragstart

사용자가 텍스트 선택 영역 또는 선택한 개체를 끌기 시작하면 원본 개체에서 발생합니다.

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

속성 값

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

GlobalEventHandlers.ondragstart에서 상속된

ondrop

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

속성 값

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

GlobalEventHandlers.ondrop에서 상속된

ondurationchange

기간 특성이 업데이트되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.ondurationchange에서 상속된

onemptied

미디어 요소가 초기 상태로 다시 설정되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onemptied에서 상속된

onended

재생 종료에 도달하면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onended에서 상속된

onerror

개체를 로드하는 동안 오류가 발생할 때 발생합니다.

onerror: OnErrorEventHandler

속성 값

OnErrorEventHandler

GlobalEventHandlers.onerror에서 상속된

onfocus

개체가 포커스를 받으면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onfocus에서 상속된

onformdata

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

속성 값

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

GlobalEventHandlers.onformdata에서 상속된

ongamepadconnected

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

속성 값

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

WindowEventHandlers.ongamepadconnected에서 상속된

ongamepaddisconnected

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

속성 값

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

WindowEventHandlers.ongamepaddisconnected에서 상속된

ongotpointercapture

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

속성 값

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

GlobalEventHandlers.ongotpointercapture에서 상속된

onhashchange

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

속성 값

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

WindowEventHandlers.onhashchange에서 상속된

oninput

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

속성 값

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

GlobalEventHandlers.oninput에서 상속된

oninvalid

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

속성 값

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

GlobalEventHandlers.oninvalid에서 상속된

onkeydown

사용자가 키를 누르면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onkeydown에서 상속된

onkeypress

경고

이 API는 이제 사용되지 않습니다.

사용자가 영숫자 키를 누르면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onkeypress에서 상속된

onkeyup

사용자가 키를 놓으면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onkeyup에서 상속된

onlanguagechange

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

속성 값

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

WindowEventHandlers.onlanguagechange에서 상속된

onload

브라우저에서 개체를 로드한 직후에 발생합니다.

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

속성 값

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

GlobalEventHandlers.onload에서 상속된

onloadeddata

미디어 데이터가 현재 재생 위치에 로드될 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onloadeddata에서 상속된

onloadedmetadata

미디어의 기간 및 크기가 결정되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onloadedmetadata에서 상속된

onloadstart

Internet Explorer에서 미디어 데이터를 검색하기 시작할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onloadstart에서 상속된

onlostpointercapture

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

속성 값

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

GlobalEventHandlers.onlostpointercapture에서 상속된

onmessage

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

속성 값

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

WindowEventHandlers.onmessage에서 상속됨

onmessageerror

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

속성 값

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

WindowEventHandlers.onmessageerror에서 상속된

onmousedown

사용자가 마우스 단추로 개체를 클릭하면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onmousedown에서 상속된

onmouseenter

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

속성 값

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

GlobalEventHandlers.onmouseenter에서 상속된

onmouseleave

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

속성 값

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

GlobalEventHandlers.onmouseleave에서 상속된

onmousemove

사용자가 개체 위로 마우스를 이동할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onmousemove에서 상속된

onmouseout

사용자가 개체의 경계 밖으로 마우스 포인터를 이동할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onmouseout에서 상속된

onmouseover

사용자가 마우스 포인터를 개체로 이동할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onmouseover에서 상속된

onmouseup

마우스가 개체 위에 있는 동안 사용자가 마우스 단추를 놓으면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onmouseup에서 상속된

onoffline

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

속성 값

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

WindowEventHandlers.onoffline에서 상속된

ononline

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

속성 값

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

WindowEventHandlers.ononline에서 상속된

onpagehide

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

속성 값

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

WindowEventHandlers.onpagehide에서 상속된

onpageshow

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

속성 값

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

WindowEventHandlers.onpageshow에서 상속된

onpause

재생이 일시 중지될 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onpause에서 상속된

onplay

재생 메서드가 요청되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onplay에서 상속된

onplaying

오디오 또는 비디오가 재생되기 시작할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onplaying에서 상속된

onpointercancel

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

속성 값

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

GlobalEventHandlers.onpointercancel에서 상속된

onpointerdown

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

속성 값

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

GlobalEventHandlers.onpointerdown에서 상속된

onpointerenter

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

속성 값

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

GlobalEventHandlers.onpointerenter에서 상속된

onpointerleave

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

속성 값

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

GlobalEventHandlers.onpointerleave에서 상속된

onpointermove

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

속성 값

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

GlobalEventHandlers.onpointermove에서 상속된

onpointerout

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

속성 값

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

GlobalEventHandlers.onpointerout에서 상속된

onpointerover

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

속성 값

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

GlobalEventHandlers.onpointerover에서 상속된

onpointerup

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

속성 값

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

GlobalEventHandlers.onpointerup에서 상속된

onpopstate

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

속성 값

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

WindowEventHandlers.onpopstate에서 상속된

onprogress

미디어 데이터를 다운로드하는 동안 진행률을 나타내기 위해 발생합니다.

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

속성 값

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

GlobalEventHandlers.onprogress에서 상속된

onratechange

재생 속도가 증가하거나 감소할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onratechange에서 상속된

onrejectionhandled

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

속성 값

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

WindowEventHandlers.onrejectionhandled에서 상속된

onreset

사용자가 양식을 다시 설정할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onreset에서 상속된

onresize

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

속성 값

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

GlobalEventHandlers.onresize에서 상속된

onscroll

사용자가 개체의 스크롤 막대에 있는 스크롤 상자의 위치를 변경할 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onscroll에서 상속된

onsecuritypolicyviolation

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

속성 값

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

GlobalEventHandlers.onsecuritypolicyviolation에서 상속된

onseeked

검색 작업이 종료되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onseeked에서 상속된

onseeking

현재 재생 위치가 이동될 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onseeking에서 상속된

onselect

현재 선택 영역이 변경되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onselect에서 상속된

onselectionchange

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

속성 값

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

GlobalEventHandlers.onselectionchange에서 상속된

onselectstart

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

속성 값

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

GlobalEventHandlers.onselectstart에서 상속된

onslotchange

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

속성 값

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

GlobalEventHandlers.onslotchange에서 상속된

onstalled

다운로드가 중지되었을 때 발생합니다.

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

속성 값

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

GlobalEventHandlers.onstalled에서 상속된

onstorage

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

속성 값

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

WindowEventHandlers.onstorage에서 상속된

onsubmit

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

속성 값

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

GlobalEventHandlers.onsubmit에서 상속된

onsuspend

로드 작업이 의도적으로 중단된 경우에 발생합니다.

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

속성 값

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

GlobalEventHandlers.onsuspend에서 상속된

ontimeupdate

현재 재생 위치를 나타내기 위해 발생합니다.

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

속성 값

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

GlobalEventHandlers.ontimeupdate에서 상속된

ontoggle

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

속성 값

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

GlobalEventHandlers.ontoggle에서 상속된

ontouchcancel

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

속성 값

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

GlobalEventHandlers.ontouchcancel에서 상속된

ontouchend

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

속성 값

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

GlobalEventHandlers.ontouchend에서 상속된

ontouchmove

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

속성 값

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

GlobalEventHandlers.ontouchmove에서 상속된

ontouchstart

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

속성 값

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

GlobalEventHandlers.ontouchstart에서 상속된

ontransitioncancel

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

속성 값

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

GlobalEventHandlers.ontransitioncancel에서 상속됨

ontransitionend

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

속성 값

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

GlobalEventHandlers.ontransitionend에서 상속됨

ontransitionrun

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

속성 값

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

GlobalEventHandlers.ontransitionrun에서 상속된

ontransitionstart

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

속성 값

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

GlobalEventHandlers.ontransitionstart에서 상속된

onunhandledrejection

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

속성 값

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

WindowEventHandlers.onunhandledrejection에서 상속된

onunload

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

속성 값

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

WindowEventHandlers.onunload에서 상속된

onvolumechange

볼륨이 변경되거나 재생이 음소거되거나 음소거되지 않은 경우에 발생합니다.

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

속성 값

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

GlobalEventHandlers.onvolumechange에서 상속된

onwaiting

비디오 리소스의 다음 프레임을 사용할 수 없으므로 재생이 중지되면 발생합니다.

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

속성 값

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

GlobalEventHandlers.onwaiting에서 상속된

onwebkitanimationend

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of onanimationend.

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

속성 값

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

GlobalEventHandlers.onwebkitanimationend에서 상속된

onwebkitanimationiteration

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of onanimationiteration.

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

속성 값

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

GlobalEventHandlers.onwebkitanimationiteration에서 상속됩니다.

onwebkitanimationstart

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of onanimationstart.

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

속성 값

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

GlobalEventHandlers.onwebkitanimationstart에서 상속된

onwebkittransitionend

경고

이 API는 이제 사용되지 않습니다.

This is a legacy alias of ontransitionend.

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

속성 값

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

GlobalEventHandlers.onwebkittransitionend에서 상속된

onwheel

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

속성 값

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

GlobalEventHandlers.onwheel에서 상속된

origin

origin: string

속성 값

string

WindowOrWorkerGlobalScope.origin에서 상속된

performance

performance: Performance

속성 값

Performance

WindowOrWorkerGlobalScope.performance에서 상속된

sessionStorage

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)

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)

function alert(message?: any)

매개 변수

message

any

blur()

function blur()

cancelIdleCallback(number)

function cancelIdleCallback(handle: number)

매개 변수

handle

number

captureEvents()

경고

이 API는 이제 사용되지 않습니다.

function captureEvents()

close()

창을 닫습니다.

function close()

confirm(string)

function confirm(message?: string): boolean

매개 변수

message

string

반환

boolean

focus()

포커스를 창의 검색 컨텍스트(있는 경우)로 이동합니다.

function focus()

getComputedStyle(Element, null | string)

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

매개 변수

elt

Element

pseudoElt

null | string

반환

CSSStyleDeclaration

getSelection()

function getSelection(): null | Selection

반환

null | Selection

matchMedia(string)

function matchMedia(query: string): MediaQueryList

매개 변수

query

string

반환

MediaQueryList

moveBy(number, number)

function moveBy(x: number, y: number)

매개 변수

x

number

y

number

moveTo(number, number)

function moveTo(x: number, y: number)

매개 변수

x

number

y

number

open(string | URL, string, string)

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

매개 변수

url

string | URL

target

string

features

string

반환

null | Window

postMessage(any, string, Transferable[])

지정된 창에 메시지를 게시합니다. 메시지는 구조화된 개체(예: 중첩된 개체 및 배열)일 수 있으며 JavaScript 값(문자열, 숫자, 날짜 개체 등)을 포함할 수 있으며 File Blob, FileList 및 ArrayBuffer 개체와 같은 특정 데이터 개체를 포함할 수 있습니다.

옵션의 전송 멤버에 나열된 개체는 복제뿐만 아니라 전송되므로 보내는 쪽에서 더 이상 사용할 수 없습니다.

대상 원본은 옵션의 targetOrigin 멤버를 사용하여 지정할 수 있습니다. 제공되지 않으면 기본값은 "/"입니다. 이 기본값은 메시지를 동일한 원본 대상으로만 제한합니다.

대상 창의 원본이 지정된 대상 원본과 일치하지 않으면 정보가 누출되지 않도록 메시지가 삭제됩니다. 원본에 관계없이 대상에 메시지를 보내려면 대상 원본을 "*"로 설정합니다.

전송 배열에 중복 개체가 포함되어 있거나 메시지를 복제할 수 없는 경우 "DataCloneError" DOMException을 throw합니다.

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()

function print()

prompt(string, string)

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

매개 변수

message

string

_default

string

반환

null | string

releaseEvents()

경고

이 API는 이제 사용되지 않습니다.

function releaseEvents()

removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)

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

매개 변수

type

string

listener

EventListenerOrEventListenerObject

options

boolean | EventListenerOptions

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

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)

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

매개 변수

callback

IdleRequestCallback

options

IdleRequestOptions

반환

number

resizeBy(number, number)

function resizeBy(x: number, y: number)

매개 변수

x

number

y

number

resizeTo(number, number)

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)

function scroll(options?: ScrollToOptions)

매개 변수

options

ScrollToOptions

scrollBy(number, number)

function scrollBy(x: number, y: number)

매개 변수

x

number

y

number

scrollBy(ScrollToOptions)

function scrollBy(options?: ScrollToOptions)

매개 변수

options

ScrollToOptions

scrollTo(number, number)

function scrollTo(x: number, y: number)

매개 변수

x

number

y

number

scrollTo(ScrollToOptions)

function scrollTo(options?: ScrollToOptions)

매개 변수

options

ScrollToOptions

stop()

문서 로드를 취소합니다.

function stop()

상속된 메서드 세부 정보

atob(string)

function atob(data: string): string

매개 변수

data

string

반환

string

WindowOrWorkerGlobalScope.atob에서 상속된

btoa(string)

function btoa(data: string): string

매개 변수

data

string

반환

string

WindowOrWorkerGlobalScope.btoa에서 상속된

cancelAnimationFrame(number)

function cancelAnimationFrame(handle: number)

매개 변수

handle

number

AnimationFrameProvider.cancelAnimationFrame에서 상속된

clearInterval(undefined | number)

function clearInterval(id: undefined | number)

매개 변수

id

undefined | number

WindowOrWorkerGlobalScope.clearInterval에서 상속된

clearTimeout(undefined | number)

function clearTimeout(id: undefined | number)

매개 변수

id

undefined | number

WindowOrWorkerGlobalScope.clearTimeout에서 상속된

createImageBitmap(ImageBitmapSource, ImageBitmapOptions)

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)

가상 이벤트 이벤트를 대상으로 디스패치하고 이벤트의 취소 가능한 특성 값이 false이거나 preventDefault() 메서드가 호출되지 않은 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

function dispatchEvent(event: Event): boolean

매개 변수

event

Event

반환

boolean

EventTarget.dispatchEvent에서 상속된

fetch(URL | RequestInfo, RequestInit)

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

매개 변수

input

URL | RequestInfo

init

RequestInit

반환

Promise<Response>

WindowOrWorkerGlobalScope.fetch에서 상속된

queueMicrotask(VoidFunction)

function queueMicrotask(callback: VoidFunction)

매개 변수

callback

VoidFunction

WindowOrWorkerGlobalScope.queueMicrotask에서 상속된

reportError(any)

function reportError(e: any)

매개 변수

e

any

WindowOrWorkerGlobalScope.reportError에서 상속된

requestAnimationFrame(FrameRequestCallback)

function requestAnimationFrame(callback: FrameRequestCallback): number

매개 변수

callback

FrameRequestCallback

반환

number

AnimationFrameProvider.requestAnimationFrame에서 상속된

setInterval(TimerHandler, number, any[])

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

매개 변수

handler

TimerHandler

timeout

number

arguments

any[]

반환

number

WindowOrWorkerGlobalScope.setInterval에서 상속된

setTimeout(TimerHandler, number, any[])

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

매개 변수

handler

TimerHandler

timeout

number

arguments

any[]

반환

number

WindowOrWorkerGlobalScope.setTimeout에서 상속된

structuredClone(any, StructuredSerializeOptions)

function structuredClone(value: any, options?: StructuredSerializeOptions): any

매개 변수

value

any

options

StructuredSerializeOptions

반환

any

WindowOrWorkerGlobalScope.structuredClone에서 상속된