다음을 통해 공유


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

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

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 값(문자열, 숫자, Date 개체 등)을 포함할 수 있으며 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

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

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

상속된 From GlobalEventHandlers.ontoggle

ontouchcancel

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

속성 값

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

상속된 From GlobalEventHandlers.ontouchcancel

ontouchend

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

속성 값

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

상속된 From GlobalEventHandlers.ontouchend

ontouchmove

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

속성 값

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

상속된 From GlobalEventHandlers.ontouchmove

ontouchstart

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

속성 값

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

상속된 From GlobalEventHandlers.ontouchstart

ontransitioncancel

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

속성 값

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

상속된 From GlobalEventHandlers.ontransitioncancel

ontransitionend

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

속성 값

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

상속된 From GlobalEventHandlers.ontransitionend

ontransitionrun

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

속성 값

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

상속된 From GlobalEventHandlers.ontransitionrun

ontransitionstart

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

속성 값

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

상속된 From GlobalEventHandlers.ontransitionstart

onunhandledrejection

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

속성 값

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

상속된 From WindowEventHandlers.onunhandledrejection

onunload

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

속성 값

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

상속된 From WindowEventHandlers.onunload

onvolumechange

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

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

속성 값

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

상속된 From GlobalEventHandlers.onvolumechange

onwaiting

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

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

속성 값

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

상속된 From GlobalEventHandlers.onwaiting

onwebkitanimationend

경고

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

This is a legacy alias of onanimationend.

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

속성 값

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

상속된 From GlobalEventHandlers.onwebkitanimationend

onwebkitanimationiteration

경고

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

This is a legacy alias of onanimationiteration.

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

속성 값

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

상속된 From GlobalEventHandlers.onwebkitanimationiteration

onwebkitanimationstart

경고

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

This is a legacy alias of onanimationstart.

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

속성 값

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

상속된 From GlobalEventHandlers.onwebkitanimationstart

onwebkittransitionend

경고

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

This is a legacy alias of ontransitionend.

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

속성 값

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

상속된 From GlobalEventHandlers.onwebkittransitionend

onwheel

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

속성 값

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

상속된 From GlobalEventHandlers.onwheel

origin

origin: string

속성 값

string

상속된 From WindowOrWorkerGlobalScope.origin

performance

performance: Performance

속성 값

Performance

상속된 From WindowOrWorkerGlobalScope.performance

sessionStorage

sessionStorage: Storage

속성 값

Storage

상속된 From 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 값(문자열, 숫자, Date 개체 등)을 포함할 수 있으며 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