Window interface
Antarmuka Window mewakili jendela yang berisi dokumen DOM; document properti menunjuk ke dokumen DOM yang dimuat di jendela tersebut.
- Memperluas
-
EventTarget,AnimationFrameProvider,GlobalEventHandlers,WindowEventHandlers,WindowLocalStorage,WindowOrWorkerGlobalScope,WindowSessionStorage
Properti
| client |
|
| closed | Properti |
| cookie |
Properti |
| custom |
Properti |
| device |
Antarmuka |
| document |
|
| event | Properti |
| external | Properti |
| frame |
Properti |
| frames | Mengembalikan jendela itu sendiri, yang merupakan objek seperti array, yang mencantumkan sub-bingkai langsung dari jendela saat ini. |
| history | Properti |
| inner |
Properti baca-saja |
| inner |
Properti |
| length | Mengembalikan jumlah bingkai (baik bingkai atau angka A. |
| location | Properti |
| locationbar | Mengembalikan |
| menubar | Mengembalikan |
| ms |
|
| name | Properti |
| navigator | Properti |
| ondevicemotion | Hanya tersedia dalam konteks yang aman. |
| ondeviceorientation | Hanya tersedia dalam konteks yang aman. |
| ondeviceorientationabsolute | Hanya tersedia dalam konteks yang aman. |
| onorientationchange | |
| opener | Properti antarmuka |
| orientation | Mengembalikan orientasi dalam derajat (dalam kenaikan 90 derajat) dari viewport relatif terhadap orientasi alami perangkat. |
| origin |
Properti |
| outer |
Properti |
| outer |
|
| page |
|
| page |
|
| parent | Properti |
| personalbar | Mengembalikan |
| powerbi | |
| power |
|
| screen | Properti |
| screen |
Properti |
| screen |
Properti |
| screenX | Properti |
| screenY | Properti |
| scrollbars | Mengembalikan |
| scrollX | Properti baca-saja |
| scrollY | Properti baca-saja |
| self | Properti |
| speech |
Properti |
| status | Properti |
| statusbar | Mengembalikan |
| toolbar | Mengembalikan |
| top | Mengembalikan referensi ke jendela paling atas dalam hierarki jendela. |
| visual |
Properti |
| window | Properti |
Properti yang Diwariskan
Metode
| add |
|
| add |
Metode |
| alert(any) |
|
| blur() | Metode ini |
| cancel |
Metode membatalkan |
| capture |
Metode ini |
| close() | Metode |
| confirm(string) |
|
| focus() | Membuat permintaan untuk membawa jendela ke depan. |
| get |
Metode mengembalikan |
| get |
Metode |
| match |
Metode antarmuka |
| move |
Metode |
| move |
Metode |
| open(string | URL, string, string) | Metode |
| post |
Metode ini |
| post |
|
| print() | Membuka dialog cetak untuk mencetak dokumen saat ini. |
| prompt(string, string) |
|
| release |
Melepaskan jendela dari peristiwa trapping dari jenis tertentu. |
| remove |
|
| remove |
Metode |
| request |
Metode ini |
| resize |
Metode |
| resize |
Metode mengubah |
| scroll(number, number) | |
| scroll(Scroll |
Metode menggulir |
| scroll |
|
| scroll |
Metode |
| scroll |
|
| scroll |
|
| stop() | Menghentikan |
Metode yang Diwarisi
| atob(string) | |
| btoa(string) | |
| cancel |
|
| clear |
|
| clear |
|
| create |
|
| create |
|
| dispatch |
Metode |
| fetch(URL | Request |
|
| queue |
|
| report |
|
| request |
|
| set |
|
| set |
|
| structured |
Detail Properti
clientInformation
clientInformation: Navigator
Nilai Properti
Navigator
closed
Properti Window.closed baca-saja menunjukkan apakah jendela yang dirujuk ditutup atau tidak.
closed: boolean
Nilai Properti
boolean
cookieStore
Properti cookieStore baca-saja dari antarmuka Window mengembalikan referensi ke objek CookieStore untuk konteks dokumen saat ini.
cookieStore: CookieStore
Nilai Properti
CookieStore
customElements
Properti customElements baca-saja dari antarmuka Window mengembalikan referensi ke objek CustomElementRegistry, yang dapat digunakan untuk mendaftarkan elemen kustom baru dan mendapatkan informasi tentang elemen kustom yang terdaftar sebelumnya.
customElements: CustomElementRegistry
Nilai Properti
CustomElementRegistry
devicePixelRatio
Antarmuka devicePixelRatio Window mengembalikan rasio resolusi dalam piksel fisik ke resolusi dalam piksel CSS untuk perangkat tampilan saat ini.
devicePixelRatio: number
Nilai Properti
number
document
window.document mengembalikan referensi ke dokumen yang terkandung dalam jendela.
document: Document
Nilai Properti
event
Properti event Jendela baca-saja mengembalikan Peristiwa yang saat ini sedang ditangani oleh kode situs.
event: Event | undefined
Nilai Properti
Event | undefined
external
Properti external WINDOW API mengembalikan instans External antarmuka, yang dimaksudkan untuk berisi fungsi yang terkait dengan penambahan penyedia pencarian eksternal ke browser.
external: External
Nilai Properti
External
frameElement
Properti Window.frameElement mengembalikan elemen (seperti iframe atau objek) tempat jendela disematkan.
frameElement: Element | null
Nilai Properti
Element | null
frames
Mengembalikan jendela itu sendiri, yang merupakan objek seperti array, yang mencantumkan sub-bingkai langsung dari jendela saat ini.
frames: Window
Nilai Properti
history
Properti Window.history baca-saja mengembalikan referensi ke objek Riwayat, yang menyediakan antarmuka untuk memanipulasi riwayat sesi browser (halaman yang dikunjungi di tab atau bingkai tempat halaman saat ini dimuat).
history: History
Nilai Properti
History
innerHeight
Properti baca-saja innerHeight dari termasuk tinggi bilah gulir horizontal, jika ada.
innerHeight: number
Nilai Properti
number
innerWidth
Properti innerWidth Jendela baca-saja mengembalikan lebar interior jendela dalam piksel (yaitu lebar viewport tata letak jendela).
innerWidth: number
Nilai Properti
number
length
Mengembalikan jumlah bingkai (baik bingkai atau angka A.
length: number
Nilai Properti
number
location
Properti Window.location baca-saja mengembalikan objek Lokasi dengan informasi tentang lokasi dokumen saat ini.
Location location
Nilai Properti
Location
locationbar
menubar
msCrypto
msCrypto: Crypto
Nilai Properti
Crypto
name
Properti Window.name mendapatkan/mengatur nama konteks penjelajahan jendela.
name: string
Nilai Properti
string
navigator
Properti Window.navigator baca-saja mengembalikan referensi ke objek Navigator, yang memiliki metode dan properti tentang aplikasi yang menjalankan skrip.
navigator: Navigator
Nilai Properti
Navigator
ondevicemotion
Hanya tersedia dalam konteks yang aman.
ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any | null
Nilai Properti
(this: Window, ev: DeviceMotionEvent) => any | null
ondeviceorientation
Hanya tersedia dalam konteks yang aman.
ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any | null
Nilai Properti
(this: Window, ev: DeviceOrientationEvent) => any | null
ondeviceorientationabsolute
Hanya tersedia dalam konteks yang aman.
ondeviceorientationabsolute: (this: Window, ev: DeviceOrientationEvent) => any | null
Nilai Properti
(this: Window, ev: DeviceOrientationEvent) => any | null
onorientationchange
onorientationchange: (this: Window, ev: Event) => any | null
Nilai Properti
(this: Window, ev: Event) => any | null
opener
Properti antarmuka opener Window mengembalikan referensi ke jendela yang membuka jendela, baik dengan Window.open, atau dengan menavigasi tautan dengan target atribut.
opener: any
Nilai Properti
any
orientation
Mengembalikan orientasi dalam derajat (dalam kenaikan 90 derajat) dari viewport relatif terhadap orientasi alami perangkat.
orientation: number
Nilai Properti
number
originAgentCluster
Properti originAgentCluster baca-saja dari antarmuka Window mengembalikan true jika jendela ini milik kluster agen yang di-origin-key: ini berarti bahwa sistem operasi telah menyediakan sumber daya khusus (misalnya proses sistem operasi) ke asal jendela ini yang tidak dibagikan dengan windows dari asal lain.
originAgentCluster: boolean
Nilai Properti
boolean
outerHeight
Properti Window.outerHeight baca-saja mengembalikan tinggi dalam piksel seluruh jendela browser, termasuk bilah samping, chrome jendela, dan batas/handel pengubahan ukuran jendela.
outerHeight: number
Nilai Properti
number
outerWidth
Window.outerWidth properti baca-saja mengembalikan lebar bagian luar jendela browser.
outerWidth: number
Nilai Properti
number
pageXOffset
pageYOffset
parent
Properti Window.parent adalah referensi ke induk jendela atau subframe saat ini.
parent: Window
Nilai Properti
personalbar
powerbi
powerBISDKGlobalServiceInstanceName
powerBISDKGlobalServiceInstanceName?: string
Nilai Properti
string
screen
Properti screen Jendela mengembalikan referensi ke objek layar yang terkait dengan jendela.
screen: Screen
Nilai Properti
Screen
screenLeft
Properti Window.screenLeft baca-saja mengembalikan jarak horizontal, dalam piksel CSS, dari batas kiri viewport browser pengguna ke sisi kiri layar.
screenLeft: number
Nilai Properti
number
screenTop
Properti Window.screenTop baca-saja mengembalikan jarak vertikal, dalam piksel CSS, dari batas atas viewport browser pengguna ke sisi atas layar.
screenTop: number
Nilai Properti
number
screenX
Properti Window.screenX baca-saja mengembalikan jarak horizontal, dalam piksel CSS, dari batas kiri viewport browser pengguna ke sisi kiri layar.
screenX: number
Nilai Properti
number
screenY
Properti Window.screenY baca-saja mengembalikan jarak vertikal, dalam piksel CSS, dari batas atas viewport browser pengguna ke tepi atas layar.
screenY: number
Nilai Properti
number
scrollbars
scrollX
Properti baca-saja scrollX antarmuka Jendela mengembalikan jumlah piksel tempat dokumen saat ini digulir secara horizontal.
scrollX: number
Nilai Properti
number
scrollY
Properti baca-saja scrollY dari antarmuka Jendela mengembalikan jumlah piksel tempat dokumen saat ini digulir secara vertikal.
scrollY: number
Nilai Properti
number
self
Properti Window.self baca-saja mengembalikan jendela itu sendiri, sebagai WindowProxy.
self: Window & typeof globalThis
Nilai Properti
Window & typeof globalThis
speechSynthesis
Properti speechSynthesis baca-saja dari objek Window mengembalikan objek SpeechSynthesis, yang merupakan titik masuk ke dalam menggunakan fungsionalitas sintesis ucapan API Ucapan Web.
speechSynthesis: SpeechSynthesis
Nilai Properti
SpeechSynthesis
status
Properti status bilah di bagian bawah jendela browser.
status: string
Nilai Properti
string
statusbar
toolbar
top
Mengembalikan referensi ke jendela paling atas dalam hierarki jendela.
top: Window | null
Nilai Properti
Window | null
visualViewport
Properti visualViewport baca-saja dari antarmuka Window mengembalikan objek VisualViewport yang mewakili viewport visual untuk jendela tertentu, atau null jika dokumen saat ini tidak sepenuhnya aktif.
visualViewport: VisualViewport | null
Nilai Properti
VisualViewport | null
window
Properti window objek Jendela menunjuk ke objek jendela itu sendiri.
window: Window & typeof globalThis
Nilai Properti
Window & typeof globalThis
Detail Properti yang Diwariskan
caches
Hanya tersedia dalam konteks yang aman.
caches: CacheStorage
Nilai Properti
CacheStorage
Diwarisi Dari WindowOrWorkerGlobalScope.caches
crossOriginIsolated
crossOriginIsolated: boolean
Nilai Properti
boolean
Diwariskan Dari WindowOrWorkerGlobalScope.crossOriginIsolated
crypto
indexedDB
indexedDB: IDBFactory
Nilai Properti
IDBFactory
Diwarisi Dari WindowOrWorkerGlobalScope.indexedDB
isSecureContext
isSecureContext: boolean
Nilai Properti
boolean
Diwariskan Dari WindowOrWorkerGlobalScope.isSecureContext
localStorage
localStorage: Storage
Nilai Properti
Storage
diwariskan dari WindowLocalStorage.localStorage
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: UIEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onabort
onafterprint
onafterprint: (this: WindowEventHandlers, ev: Event) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: Event) => any | null
Diwariskan Dari WindowEventHandlers.onafterprint
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onanimationcancel
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onanimationend
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onanimationiteration
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onanimationstart
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onauxclick
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: InputEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onbeforeinput
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onbeforematch
onbeforeprint
onbeforeprint: (this: WindowEventHandlers, ev: Event) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: Event) => any | null
Diwariskan Dari WindowEventHandlers.onbeforeprint
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onbeforetoggle
onbeforeunload
onbeforeunload: (this: WindowEventHandlers, ev: BeforeUnloadEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: BeforeUnloadEvent) => any | null
Diwarisi Dari WindowEventHandlers.onbeforeunload
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
Diwarisi Dari GlobalEventHandlers.onblur
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oncancel
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oncanplay
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oncanplaythrough
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwarisi Dari GlobalEventHandlers.onchange
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onclick
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwarisi Dari GlobalEventHandlers.onclose
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.oncontextmenu
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Diwariskan Dari GlobalEventHandlers.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oncuechange
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Diwariskan Dari GlobalEventHandlers.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwarisi Dari GlobalEventHandlers.ondblclick
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ondrag
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ondragend
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ondragenter
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ondragleave
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ondragover
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ondragstart
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: DragEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ondrop
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.ondurationchange
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onemptied
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onended
onerror
onerror: OnErrorEventHandler
Nilai Properti
OnErrorEventHandler
Diwariskan Dari GlobalEventHandlers.onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onfocus
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onformdata
ongamepadconnected
ongamepadconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: GamepadEvent) => any | null
Diwariskan Dari WindowEventHandlers.ongamepadconnected
ongamepaddisconnected
ongamepaddisconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: GamepadEvent) => any | null
Diwariskan Dari WindowEventHandlers.ongamepaddisconnected
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ongotpointercapture
onhashchange
onhashchange: (this: WindowEventHandlers, ev: HashChangeEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: HashChangeEvent) => any | null
Diwariskan Dari WindowEventHandlers.onhashchange
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oninput
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.oninvalid
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Diwarisi Dari GlobalEventHandlers.onkeypress
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onkeyup
onlanguagechange
onlanguagechange: (this: WindowEventHandlers, ev: Event) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: Event) => any | null
Diwariskan Dari WindowEventHandlers.onlanguagechange
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwarisi Dari GlobalEventHandlers.onload
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onloadeddata
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onloadedmetadata
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onloadstart
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onlostpointercapture
onmessage
onmessage: (this: WindowEventHandlers, ev: MessageEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: MessageEvent) => any | null
Diwariskan Dari WindowEventHandlers.onmessage
onmessageerror
onmessageerror: (this: WindowEventHandlers, ev: MessageEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: MessageEvent) => any | null
Diwariskan Dari WindowEventHandlers.onmessageerror
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwarisi Dari GlobalEventHandlers.onmousedown
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onmouseenter
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onmouseleave
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onmousemove
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwarisi Dari GlobalEventHandlers.onmouseout
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onmouseover
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onmouseup
onoffline
onoffline: (this: WindowEventHandlers, ev: Event) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: Event) => any | null
Diwariskan Dari WindowEventHandlers.onoffline
ononline
ononline: (this: WindowEventHandlers, ev: Event) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: Event) => any | null
Diwariskan Dari WindowEventHandlers.ononline
onpagehide
onpagehide: (this: WindowEventHandlers, ev: PageTransitionEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: PageTransitionEvent) => any | null
Diwariskan Dari WindowEventHandlers.onpagehide
onpagereveal
onpagereveal: (this: WindowEventHandlers, ev: PageRevealEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: PageRevealEvent) => any | null
Diwariskan Dari WindowEventHandlers.onpagereveal
onpageshow
onpageshow: (this: WindowEventHandlers, ev: PageTransitionEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: PageTransitionEvent) => any | null
Diwariskan Dari WindowEventHandlers.onpageshow
onpageswap
onpageswap: (this: WindowEventHandlers, ev: PageSwapEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: PageSwapEvent) => any | null
Diwariskan Dari WindowEventHandlers.onpageswap
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onpause
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onplay
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onplaying
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpointercancel
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpointerdown
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpointerenter
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpointerleave
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpointermove
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwarisi Dari GlobalEventHandlers.onpointerout
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpointerover
onpointerrawupdate
Hanya tersedia dalam konteks yang aman.
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onpointerup
onpopstate
onpopstate: (this: WindowEventHandlers, ev: PopStateEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: PopStateEvent) => any | null
Diwariskan Dari WindowEventHandlers.onpopstate
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onprogress
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onratechange
onrejectionhandled
onrejectionhandled: (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null
Diwariskan Dari WindowEventHandlers.onrejectionhandled
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwarisi Dari GlobalEventHandlers.onreset
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: UIEvent) => any | null
Diwarisi Dari GlobalEventHandlers.onresize
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onscroll
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onsecuritypolicyviolation
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onseeked
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onseeking
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwarisi Dari GlobalEventHandlers.onselect
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onselectionchange
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onselectstart
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onslotchange
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onstalled
onstorage
onstorage: (this: WindowEventHandlers, ev: StorageEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: StorageEvent) => any | null
Diwariskan Dari WindowEventHandlers.onstorage
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onsubmit
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onsuspend
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.ontimeupdate
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ontoggle
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Diwarisi Dari GlobalEventHandlers.ontouchcancel
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ontouchend
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ontouchmove
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ontouchstart
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Diwariskan Dari GlobalEventHandlers.ontransitioncancel
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Diwarisi Dari GlobalEventHandlers.ontransitionend
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Diwarisi Dari GlobalEventHandlers.ontransitionrun
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Diwarisi Dari GlobalEventHandlers.ontransitionstart
onunhandledrejection
onunhandledrejection: (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: PromiseRejectionEvent) => any | null
Diwariskan Dari WindowEventHandlers.onunhandledrejection
onunload
onunload: (this: WindowEventHandlers, ev: Event) => any | null
Nilai Properti
(this: WindowEventHandlers, ev: Event) => any | null
Diwariskan Dari WindowEventHandlers.onunload
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onvolumechange
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onwaiting
onwebkitanimationend
Peringatan
API ini sudah tidak digunakan lagi.
This is a legacy alias of onanimationend.
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onwebkitanimationend
onwebkitanimationiteration
Peringatan
API ini sudah tidak digunakan lagi.
This is a legacy alias of onanimationiteration.
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onwebkitanimationiteration
onwebkitanimationstart
Peringatan
API ini sudah tidak digunakan lagi.
This is a legacy alias of onanimationstart.
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwariskan Dari GlobalEventHandlers.onwebkitanimationstart
onwebkittransitionend
Peringatan
API ini sudah tidak digunakan lagi.
This is a legacy alias of ontransitionend.
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: Event) => any | null
Diwarisi Dari GlobalEventHandlers.onwebkittransitionend
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
Nilai Properti
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
Diwariskan Dari GlobalEventHandlers.onwheel
origin
performance
performance: Performance
Nilai Properti
Performance
Diwarisi Dari WindowOrWorkerGlobalScope.performance
sessionStorage
sessionStorage: Storage
Nilai Properti
Storage
Diwarisi Dari WindowSessionStorage.sessionStorage
Detail Metode
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
Parameter
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
addEventListener<K>(K, (this: Window, ev: WindowEventMap[K]) => any, boolean | AddEventListenerOptions)
Metode addEventListener() antarmuka EventTarget menyiapkan fungsi yang akan dipanggil setiap kali peristiwa yang ditentukan dikirimkan ke target.
function addEventListener<K>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parameter
- type
-
K
- listener
-
(this: Window, ev: WindowEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
alert(any)
window.alert() menginstruksikan browser untuk menampilkan dialog dengan pesan opsional, dan menunggu hingga pengguna menutup dialog.
function alert(message?: any)
Parameter
- message
-
any
blur()
Metode ini Window.blur() tidak melakukan apa-apa.
function blur()
cancelIdleCallback(number)
Metode membatalkan window.cancelIdleCallback() panggilan balik yang sebelumnya dijadwalkan dengan window.requestIdleCallback().
function cancelIdleCallback(handle: number)
Parameter
- handle
-
number
captureEvents()
Metode ini Window.captureEvents() tidak melakukan apa-apa.
function captureEvents()
close()
Metode Window.close() menutup jendela saat ini, atau jendela tempatnya dipanggil.
function close()
confirm(string)
window.confirm() menginstruksikan browser untuk menampilkan dialog dengan pesan opsional, dan menunggu hingga pengguna mengonfirmasi atau membatalkan dialog.
function confirm(message?: string): boolean
Parameter
- message
-
string
Mengembalikan
boolean
focus()
getComputedStyle(Element, string | null)
Metode mengembalikan Window.getComputedStyle() objek yang berisi nilai semua properti CSS dari elemen, setelah menerapkan lembar gaya aktif dan menyelesaikan komputasi dasar apa pun yang mungkin berisi nilai-nilai tersebut.
function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration
Parameter
- elt
-
Element
- pseudoElt
-
string | null
Mengembalikan
CSSStyleDeclaration
getSelection()
Metode getSelection() antarmuka Window mengembalikan objek Pilihan yang terkait dengan dokumen jendela, mewakili rentang teks yang dipilih oleh pengguna atau posisi caret saat ini.
function getSelection(): Selection | null
Mengembalikan
Selection | null
matchMedia(string)
Metode antarmuka matchMedia() Window mengembalikan objek MediaQueryList baru yang kemudian dapat digunakan untuk menentukan apakah dokumen cocok dengan string kueri media, serta untuk memantau dokumen untuk mendeteksi kapan cocok (atau berhenti cocok) kueri media tersebut.
function matchMedia(query: string): MediaQueryList
Parameter
- query
-
string
Mengembalikan
MediaQueryList
moveBy(number, number)
Metode moveBy() antarmuka Window memindahkan jendela saat ini dengan jumlah tertentu.
function moveBy(x: number, y: number)
Parameter
- x
-
number
- y
-
number
moveTo(number, number)
Metode moveTo() antarmuka Jendela memindahkan jendela saat ini ke koordinat yang ditentukan.
function moveTo(x: number, y: number)
Parameter
- x
-
number
- y
-
number
open(string | URL, string, string)
Metode open()Window antarmuka memuat sumber daya tertentu ke dalam konteks penjelajahan baru atau yang sudah ada (yaitu, tab, jendela, atau iframe) dengan nama yang ditentukan.
function open(url?: string | URL, target?: string, features?: string): Window | null
Parameter
- url
-
string | URL
- target
-
string
- features
-
string
Mengembalikan
Window | null
postMessage(any, string, Transferable[])
Metode ini window.postMessage() dengan aman memungkinkan komunikasi lintas asal antara objek Window; misalnya, antara halaman dan pop-up yang ditelurkannya, atau antara halaman dan iframe yang disematkan di dalamnya.
function postMessage(message: any, targetOrigin: string, transfer?: Transferable[])
Parameter
- message
-
any
- targetOrigin
-
string
- transfer
-
Transferable[]
postMessage(any, WindowPostMessageOptions)
function postMessage(message: any, options?: WindowPostMessageOptions)
Parameter
- message
-
any
- options
-
WindowPostMessageOptions
print()
prompt(string, string)
window.prompt() menginstruksikan browser untuk menampilkan dialog dengan pesan opsional yang meminta pengguna untuk memasukkan beberapa teks, dan menunggu hingga pengguna mengirimkan teks atau membatalkan dialog.
function prompt(message?: string, _default?: string): string | null
Parameter
- message
-
string
- _default
-
string
Mengembalikan
string | null
releaseEvents()
Melepaskan jendela dari peristiwa trapping dari jenis tertentu.
function releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
Parameter
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
removeEventListener<K>(K, (this: Window, ev: WindowEventMap[K]) => any, boolean | EventListenerOptions)
Metode removeEventListener() antarmuka EventTarget menghapus pendengar peristiwa yang sebelumnya terdaftar di EventTarget.addEventListener() dari target.
function removeEventListener<K>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parameter
- type
-
K
- listener
-
(this: Window, ev: WindowEventMap[K]) => any
- options
-
boolean | EventListenerOptions
requestIdleCallback(IdleRequestCallback, IdleRequestOptions)
Metode ini window.requestIdleCallback() mengantrekan fungsi yang akan dipanggil selama periode diam browser.
function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number
Parameter
- callback
-
IdleRequestCallback
- options
-
IdleRequestOptions
Mengembalikan
number
resizeBy(number, number)
Metode Window.resizeBy() mengubah ukuran jendela saat ini dengan jumlah tertentu.
function resizeBy(x: number, y: number)
Parameter
- x
-
number
- y
-
number
resizeTo(number, number)
Metode mengubah Window.resizeTo() ukuran jendela secara dinamis.
function resizeTo(width: number, height: number)
Parameter
- width
-
number
- height
-
number
scroll(number, number)
function scroll(x: number, y: number)
Parameter
- x
-
number
- y
-
number
scroll(ScrollToOptions)
Metode menggulir Window.scroll() jendela ke tempat tertentu dalam dokumen.
function scroll(options?: ScrollToOptions)
Parameter
- options
-
ScrollToOptions
scrollBy(number, number)
function scrollBy(x: number, y: number)
Parameter
- x
-
number
- y
-
number
scrollBy(ScrollToOptions)
Metode Window.scrollBy() menggulir dokumen di jendela dengan jumlah tertentu.
function scrollBy(options?: ScrollToOptions)
Parameter
- options
-
ScrollToOptions
scrollTo(number, number)
function scrollTo(x: number, y: number)
Parameter
- x
-
number
- y
-
number
scrollTo(ScrollToOptions)
Window.scrollTo() menggulir ke sekumpulan koordinat tertentu dalam dokumen.
function scrollTo(options?: ScrollToOptions)
Parameter
- options
-
ScrollToOptions
stop()
Menghentikan window.stop() pemuatan sumber daya lebih lanjut dalam konteks penjelajahan saat ini, setara dengan tombol berhenti di browser.
function stop()
Detail Metode yang Diwarisi
atob(string)
function atob(data: string): string
Parameter
- data
-
string
Mengembalikan
string
Diwarisi Dari WindowOrWorkerGlobalScope.atob
btoa(string)
function btoa(data: string): string
Parameter
- data
-
string
Mengembalikan
string
Diwariskan Dari WindowOrWorkerGlobalScope.btoa
cancelAnimationFrame(number)
function cancelAnimationFrame(handle: number)
Parameter
- handle
-
number
Diwariskan Dari AnimationFrameProvider.cancelAnimationFrame
clearInterval(number | undefined)
function clearInterval(id: number | undefined)
Parameter
- id
-
number | undefined
Diwarisi Dari WindowOrWorkerGlobalScope.clearInterval
clearTimeout(number | undefined)
function clearTimeout(id: number | undefined)
Parameter
- id
-
number | undefined
Diwarisi Dari WindowOrWorkerGlobalScope.clearTimeout
createImageBitmap(ImageBitmapSource, ImageBitmapOptions)
function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>
Parameter
- image
-
ImageBitmapSource
- options
-
ImageBitmapOptions
Mengembalikan
Promise<ImageBitmap>
Diwarisi Dari 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>
Parameter
- image
-
ImageBitmapSource
- sx
-
number
- sy
-
number
- sw
-
number
- sh
-
number
- options
-
ImageBitmapOptions
Mengembalikan
Promise<ImageBitmap>
Diwarisi Dari WindowOrWorkerGlobalScope.createImageBitmap
dispatchEvent(Event)
Metode dispatchEvent() EventTarget mengirimkan Peristiwa ke objek, (secara sinkron) memanggil pendengar peristiwa yang terpengaruh dalam urutan yang sesuai.
function dispatchEvent(event: Event): boolean
Parameter
- event
-
Event
Mengembalikan
boolean
Diwarisi Dari EventTarget.dispatchEvent
fetch(URL | RequestInfo, RequestInit)
function fetch(input: URL | RequestInfo, init?: RequestInit): Promise<Response>
Parameter
- input
-
URL | RequestInfo
- init
-
RequestInit
Mengembalikan
Promise<Response>
Diwarisi Dari WindowOrWorkerGlobalScope.fetch
queueMicrotask(VoidFunction)
function queueMicrotask(callback: VoidFunction)
Parameter
- callback
-
VoidFunction
Diwarisi Dari WindowOrWorkerGlobalScope.queueMicrotask
reportError(any)
function reportError(e: any)
Parameter
- e
-
any
Diwarisi Dari WindowOrWorkerGlobalScope.reportError
requestAnimationFrame(FrameRequestCallback)
function requestAnimationFrame(callback: FrameRequestCallback): number
Parameter
- callback
-
FrameRequestCallback
Mengembalikan
number
Diwariskan Dari AnimationFrameProvider.requestAnimationFrame
setInterval(TimerHandler, number, any[])
function setInterval(handler: TimerHandler, timeout?: number, arguments: any[]): number
Parameter
- handler
-
TimerHandler
- timeout
-
number
- arguments
-
any[]
Mengembalikan
number
Diwarisi Dari WindowOrWorkerGlobalScope.setInterval
setTimeout(TimerHandler, number, any[])
function setTimeout(handler: TimerHandler, timeout?: number, arguments: any[]): number
Parameter
- handler
-
TimerHandler
- timeout
-
number
- arguments
-
any[]
Mengembalikan
number
Diwariskan Dari WindowOrWorkerGlobalScope.setTimeout
structuredClone<T>(T, StructuredSerializeOptions)
function structuredClone<T>(value: T, options?: StructuredSerializeOptions): T
Parameter
- value
-
T
- options
-
StructuredSerializeOptions
Mengembalikan
T
Diwariskan Dari WindowOrWorkerGlobalScope.structuredClone