Window

Overview

The Window interface represents a window containing a DOM document; the document property points to the DOM document loaded in that window.

Location

 

addEventListener

Register an event handler to a specific event type on the window.

 

method addEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; parcapture: dynamic; paronce: dynamic; parpassive: dynamic): dynamic

 

dynamic addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)

 

func addEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ parcapture: dynamic, _ paronce: dynamic, _ parpassive: dynamic) -> dynamic

 

dynamic addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)

 

Function addEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, parcapture As dynamic, paronce As dynamic, parpassive As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • parcapture:
  • paronce:
  • parpassive:

alert

Displays an alert dialog.

 

method alert(parmessage: dynamic): dynamic

 

dynamic alert(dynamic parmessage)

 

func alert(_ parmessage: dynamic) -> dynamic

 

dynamic alert(dynamic parmessage)

 

Function alert(parmessage As dynamic) As dynamic

Parameters:

  • parmessage:

atob

Decodes a string of data which has been encoded using base-64 encoding.

 

method atob(parencodedData: dynamic): String

 

String atob(dynamic parencodedData)

 

func atob(_ parencodedData: dynamic) -> String

 

String atob(dynamic parencodedData)

 

Function atob(parencodedData As dynamic) As String

Parameters:

  • parencodedData:

blur

Sets focus away from the window.

 

method blur: dynamic

 

dynamic blur()

 

func blur() -> dynamic

 

dynamic blur()

 

Function blur() As dynamic

btoa

Creates a base-64 encoded ASCII string from a string of binary data.

 

method btoa(parstringToEncode: dynamic): String

 

String btoa(dynamic parstringToEncode)

 

func btoa(_ parstringToEncode: dynamic) -> String

 

String btoa(dynamic parstringToEncode)

 

Function btoa(parstringToEncode As dynamic) As String

Parameters:

  • parstringToEncode:

caches

 

property caches: dynamic read;

 

dynamic caches { get; }

 

var caches: dynamic { get{} }

 

dynamic caches { __get; }

 

ReadOnly Property caches() As dynamic

clearImmediate

Cancels the repeated execution set using setImmediate.

 

method clearImmediate(parimmediateID: dynamic): dynamic

 

dynamic clearImmediate(dynamic parimmediateID)

 

func clearImmediate(_ parimmediateID: dynamic) -> dynamic

 

dynamic clearImmediate(dynamic parimmediateID)

 

Function clearImmediate(parimmediateID As dynamic) As dynamic

Parameters:

  • parimmediateID:

clearInterval

Cancels the repeated execution set using WindowOrWorkerGlobalScope.setInterval().

 

method clearInterval(parintervalID: dynamic): dynamic

 

dynamic clearInterval(dynamic parintervalID)

 

func clearInterval(_ parintervalID: dynamic) -> dynamic

 

dynamic clearInterval(dynamic parintervalID)

 

Function clearInterval(parintervalID As dynamic) As dynamic

Parameters:

  • parintervalID:

clearTimeout

Cancels the delayed execution set using WindowOrWorkerGlobalScope.setTimeout().

 

method clearTimeout(partimeoutID: dynamic): dynamic

 

dynamic clearTimeout(dynamic partimeoutID)

 

func clearTimeout(_ partimeoutID: dynamic) -> dynamic

 

dynamic clearTimeout(dynamic partimeoutID)

 

Function clearTimeout(partimeoutID As dynamic) As dynamic

Parameters:

  • partimeoutID:

close

Closes the current window.

 

method close: dynamic

 

dynamic close()

 

func close() -> dynamic

 

dynamic close()

 

Function close() As dynamic

confirm

Displays a dialog with a message that the user needs to respond to.

 

method confirm(parmessage: dynamic): dynamic

 

dynamic confirm(dynamic parmessage)

 

func confirm(_ parmessage: dynamic) -> dynamic

 

dynamic confirm(dynamic parmessage)

 

Function confirm(parmessage As dynamic) As dynamic

Parameters:

  • parmessage:

console

 

property console: dynamic read;

 

dynamic console { get; }

 

var console: dynamic { get{} }

 

dynamic console { __get; }

 

ReadOnly Property console() As dynamic

createImageBitmap

Accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. Optionally the source is cropped to the rectangle of pixels originating at (sx, sy) with width sw, and height sh.

 

method createImageBitmap(parimage: dynamic; parsx: dynamic; parsy: dynamic; parsw: dynamic; parsh: dynamic; paroptions: dynamic): Int32

 

Int32 createImageBitmap(dynamic parimage, dynamic parsx, dynamic parsy, dynamic parsw, dynamic parsh, dynamic paroptions)

 

func createImageBitmap(_ parimage: dynamic, _ parsx: dynamic, _ parsy: dynamic, _ parsw: dynamic, _ parsh: dynamic, _ paroptions: dynamic) -> Int32

 

Int32 createImageBitmap(dynamic parimage, dynamic parsx, dynamic parsy, dynamic parsw, dynamic parsh, dynamic paroptions)

 

Function createImageBitmap(parimage As dynamic, parsx As dynamic, parsy As dynamic, parsw As dynamic, parsh As dynamic, paroptions As dynamic) As Int32

Parameters:

  • parimage:
  • parsx:
  • parsy:
  • parsw:
  • parsh:
  • paroptions:

crypto

 

property crypto: Crypto read;

 

Crypto crypto { get; }

 

var crypto: Crypto { get{} }

 

Crypto crypto { __get; }

 

ReadOnly Property crypto() As Crypto

customElements

 

property customElements: dynamic read;

 

dynamic customElements { get; }

 

var customElements: dynamic { get{} }

 

dynamic customElements { __get; }

 

ReadOnly Property customElements() As dynamic

dialogArguments

 

property dialogArguments: dynamic read;

 

dynamic dialogArguments { get; }

 

var dialogArguments: dynamic { get{} }

 

dynamic dialogArguments { __get; }

 

ReadOnly Property dialogArguments() As dynamic

dispatchEvent

Used to trigger an event.

 

method dispatchEvent(parevent: dynamic): dynamic

 

dynamic dispatchEvent(dynamic parevent)

 

func dispatchEvent(_ parevent: dynamic) -> dynamic

 

dynamic dispatchEvent(dynamic parevent)

 

Function dispatchEvent(parevent As dynamic) As dynamic

Parameters:

  • parevent:

document

 

property document: Document read;

 

Document document { get; }

 

var document: Document { get{} }

 

Document document { __get; }

 

ReadOnly Property document() As Document

event

 

property event: Event read;

 

Event event { get; }

 

var event: Event { get{} }

 

Event event { __get; }

 

ReadOnly Property event() As Event

fetch

Starts the process of fetching a resource from the network.

 

method fetch(parresource: dynamic; parinit: dynamic; parmethod: dynamic; parheaders: dynamic; parbody: dynamic; parmode: dynamic; parcredentials: dynamic; parcache: dynamic; parredirect: dynamic; parreferrer: dynamic; parreferrerPolicy: dynamic; parintegrity: dynamic; parkeepalive: dynamic; parsignal: dynamic): dynamic

 

dynamic fetch(dynamic parresource, dynamic parinit, dynamic parmethod, dynamic parheaders, dynamic parbody, dynamic parmode, dynamic parcredentials, dynamic parcache, dynamic parredirect, dynamic parreferrer, dynamic parreferrerPolicy, dynamic parintegrity, dynamic parkeepalive, dynamic parsignal)

 

func fetch(_ parresource: dynamic, _ parinit: dynamic, _ parmethod: dynamic, _ parheaders: dynamic, _ parbody: dynamic, _ parmode: dynamic, _ parcredentials: dynamic, _ parcache: dynamic, _ parredirect: dynamic, _ parreferrer: dynamic, _ parreferrerPolicy: dynamic, _ parintegrity: dynamic, _ parkeepalive: dynamic, _ parsignal: dynamic) -> dynamic

 

dynamic fetch(dynamic parresource, dynamic parinit, dynamic parmethod, dynamic parheaders, dynamic parbody, dynamic parmode, dynamic parcredentials, dynamic parcache, dynamic parredirect, dynamic parreferrer, dynamic parreferrerPolicy, dynamic parintegrity, dynamic parkeepalive, dynamic parsignal)

 

Function fetch(parresource As dynamic, parinit As dynamic, parmethod As dynamic, parheaders As dynamic, parbody As dynamic, parmode As dynamic, parcredentials As dynamic, parcache As dynamic, parredirect As dynamic, parreferrer As dynamic, parreferrerPolicy As dynamic, parintegrity As dynamic, parkeepalive As dynamic, parsignal As dynamic) As dynamic

Parameters:

  • parresource:
  • parinit:
  • parmethod:
  • parheaders:
  • parbody:
  • parmode:
  • parcredentials:
  • parcache:
  • parredirect:
  • parreferrer:
  • parreferrerPolicy:
  • parintegrity:
  • parkeepalive:
  • parsignal:

find

Searches for a given string in a window.

 

method find(parparaString: dynamic; paraCaseSensitive: dynamic; paraBackwards: dynamic; paraWrapAround: dynamic; paraWholeWord: dynamic; paraSearchInFrames: dynamic; paraShowDialog: dynamic): String

 

String find(dynamic parparaString, dynamic paraCaseSensitive, dynamic paraBackwards, dynamic paraWrapAround, dynamic paraWholeWord, dynamic paraSearchInFrames, dynamic paraShowDialog)

 

func find(_ parparaString: dynamic, _ paraCaseSensitive: dynamic, _ paraBackwards: dynamic, _ paraWrapAround: dynamic, _ paraWholeWord: dynamic, _ paraSearchInFrames: dynamic, _ paraShowDialog: dynamic) -> String

 

String find(dynamic parparaString, dynamic paraCaseSensitive, dynamic paraBackwards, dynamic paraWrapAround, dynamic paraWholeWord, dynamic paraSearchInFrames, dynamic paraShowDialog)

 

Function find(parparaString As dynamic, paraCaseSensitive As dynamic, paraBackwards As dynamic, paraWrapAround As dynamic, paraWholeWord As dynamic, paraSearchInFrames As dynamic, paraShowDialog As dynamic) As String

Parameters:

  • parparaString:
  • paraCaseSensitive:
  • paraBackwards:
  • paraWrapAround:
  • paraWholeWord:
  • paraSearchInFrames:
  • paraShowDialog:

focus

Sets focus on the current window.

 

method focus: dynamic

 

dynamic focus()

 

func focus() -> dynamic

 

dynamic focus()

 

Function focus() As dynamic

frameElement

 

property frameElement: Element read;

 

Element frameElement { get; }

 

var frameElement: Element { get{} }

 

Element frameElement { __get; }

 

ReadOnly Property frameElement() As Element

frames

 

property frames: array of Document read;

 

Document[] frames { get; }

 

var frames: Document... { get{} }

 

Document[] frames { __get; }

 

ReadOnly Property frames() As Document()

fullScreen

 

property fullScreen: Boolean read write;

 

Boolean fullScreen { get; set; }

 

var fullScreen: Boolean { get{} set{} }

 

Boolean fullScreen { __get; __set; }

 

Property fullScreen() As Boolean

getComputedStyle

Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.

 

method getComputedStyle(parelement: dynamic): HTMLElement

 

HTMLElement getComputedStyle(dynamic parelement)

 

func getComputedStyle(_ parelement: dynamic) -> HTMLElement

 

HTMLElement getComputedStyle(dynamic parelement)

 

Function getComputedStyle(parelement As dynamic) As HTMLElement

Parameters:

  • parelement:

getSelection

Returns the selection object representing the selected item(s).

 

method getSelection: dynamic

 

dynamic getSelection()

 

func getSelection() -> dynamic

 

dynamic getSelection()

 

Function getSelection() As dynamic

history

 

property history: History read;

 

History history { get; }

 

var history: History { get{} }

 

History history { __get; }

 

ReadOnly Property history() As History

indexedDB

 

property indexedDB: dynamic read;

 

dynamic indexedDB { get; }

 

var indexedDB: dynamic { get{} }

 

dynamic indexedDB { __get; }

 

ReadOnly Property indexedDB() As dynamic

innerHeight

 

property innerHeight: Int32 read;

 

Int32 innerHeight { get; }

 

var innerHeight: Int32 { get{} }

 

Int32 innerHeight { __get; }

 

ReadOnly Property innerHeight() As Int32

innerWidth

 

property innerWidth: Int32 read;

 

Int32 innerWidth { get; }

 

var innerWidth: Int32 { get{} }

 

Int32 innerWidth { __get; }

 

ReadOnly Property innerWidth() As Int32

isSecureContext

 

property isSecureContext: Boolean read;

 

Boolean isSecureContext { get; }

 

var isSecureContext: Boolean { get{} }

 

Boolean isSecureContext { __get; }

 

ReadOnly Property isSecureContext() As Boolean

length

 

property length: Int32 read;

 

Int32 length { get; }

 

var length: Int32 { get{} }

 

Int32 length { __get; }

 

ReadOnly Property length() As Int32

localStorage

 

property localStorage: Storage read;

 

Storage localStorage { get; }

 

var localStorage: Storage { get{} }

 

Storage localStorage { __get; }

 

ReadOnly Property localStorage() As Storage

location

 

property location: dynamic read write;

 

dynamic location { get; set; }

 

var location: dynamic { get{} set{} }

 

dynamic location { __get; __set; }

 

Property location() As dynamic

locationbar

 

property locationbar: dynamic read;

 

dynamic locationbar { get; }

 

var locationbar: dynamic { get{} }

 

dynamic locationbar { __get; }

 

ReadOnly Property locationbar() As dynamic

matchMedia

Returns a MediaQueryList object representing the specified media query string.

 

method matchMedia(parmediaQueryString: dynamic): dynamic

 

dynamic matchMedia(dynamic parmediaQueryString)

 

func matchMedia(_ parmediaQueryString: dynamic) -> dynamic

 

dynamic matchMedia(dynamic parmediaQueryString)

 

Function matchMedia(parmediaQueryString As dynamic) As dynamic

Parameters:

  • parmediaQueryString:

maximize

FIXME: NeedsContents

 

method maximize: dynamic

 

dynamic maximize()

 

func maximize() -> dynamic

 

dynamic maximize()

 

Function maximize() As dynamic

 

property menubar: dynamic read;

 

dynamic menubar { get; }

 

var menubar: dynamic { get{} }

 

dynamic menubar { __get; }

 

ReadOnly Property menubar() As dynamic

messageManager

 

property messageManager: dynamic read write;

 

dynamic messageManager { get; set; }

 

var messageManager: dynamic { get{} set{} }

 

dynamic messageManager { __get; __set; }

 

Property messageManager() As dynamic

minimize

Minimizes the window.

 

method minimize: dynamic

 

dynamic minimize()

 

func minimize() -> dynamic

 

dynamic minimize()

 

Function minimize() As dynamic

moveBy

Moves the current window by a specified amount.

 

method moveBy: dynamic

 

dynamic moveBy()

 

func moveBy() -> dynamic

 

dynamic moveBy()

 

Function moveBy() As dynamic

moveTo

Moves the window to the specified coordinates.

 

method moveTo: dynamic

 

dynamic moveTo()

 

func moveTo() -> dynamic

 

dynamic moveTo()

 

Function moveTo() As dynamic

name

 

property name: String read write;

 

String name { get; set; }

 

var name: String { get{} set{} }

 

String name { __get; __set; }

 

Property name() As String

 

property navigator: dynamic read;

 

dynamic navigator { get; }

 

var navigator: dynamic { get{} }

 

dynamic navigator { __get; }

 

ReadOnly Property navigator() As dynamic

onappinstalled

 

property onappinstalled: EventListener read write;

 

EventListener onappinstalled { get; set; }

 

var onappinstalled: EventListener { get{} set{} }

 

EventListener onappinstalled { __get; __set; }

 

Property onappinstalled() As EventListener

onbeforeinstallprompt

 

property onbeforeinstallprompt: EventListener read write;

 

EventListener onbeforeinstallprompt { get; set; }

 

var onbeforeinstallprompt: EventListener { get{} set{} }

 

EventListener onbeforeinstallprompt { __get; __set; }

 

Property onbeforeinstallprompt() As EventListener

ondevicelight

 

property ondevicelight: EventListener read write;

 

EventListener ondevicelight { get; set; }

 

var ondevicelight: EventListener { get{} set{} }

 

EventListener ondevicelight { __get; __set; }

 

Property ondevicelight() As EventListener

ondevicemotion

 

property ondevicemotion: EventListener read write;

 

EventListener ondevicemotion { get; set; }

 

var ondevicemotion: EventListener { get{} set{} }

 

EventListener ondevicemotion { __get; __set; }

 

Property ondevicemotion() As EventListener

ondeviceorientation

 

property ondeviceorientation: EventListener read write;

 

EventListener ondeviceorientation { get; set; }

 

var ondeviceorientation: EventListener { get{} set{} }

 

EventListener ondeviceorientation { __get; __set; }

 

Property ondeviceorientation() As EventListener

ondeviceproximity

 

property ondeviceproximity: EventListener read write;

 

EventListener ondeviceproximity { get; set; }

 

var ondeviceproximity: EventListener { get{} set{} }

 

EventListener ondeviceproximity { __get; __set; }

 

Property ondeviceproximity() As EventListener

ongamepadconnected

 

property ongamepadconnected: EventListener read write;

 

EventListener ongamepadconnected { get; set; }

 

var ongamepadconnected: EventListener { get{} set{} }

 

EventListener ongamepadconnected { __get; __set; }

 

Property ongamepadconnected() As EventListener

ongamepaddisconnected

 

property ongamepaddisconnected: EventListener read write;

 

EventListener ongamepaddisconnected { get; set; }

 

var ongamepaddisconnected: EventListener { get{} set{} }

 

EventListener ongamepaddisconnected { __get; __set; }

 

Property ongamepaddisconnected() As EventListener

onmozbeforepaint

 

property onmozbeforepaint: EventListener read write;

 

EventListener onmozbeforepaint { get; set; }

 

var onmozbeforepaint: EventListener { get{} set{} }

 

EventListener onmozbeforepaint { __get; __set; }

 

Property onmozbeforepaint() As EventListener

onpaint

 

property onpaint: EventListener read write;

 

EventListener onpaint { get; set; }

 

var onpaint: EventListener { get{} set{} }

 

EventListener onpaint { __get; __set; }

 

Property onpaint() As EventListener

onuserproximity

 

property onuserproximity: EventListener read write;

 

EventListener onuserproximity { get; set; }

 

var onuserproximity: EventListener { get{} set{} }

 

EventListener onuserproximity { __get; __set; }

 

Property onuserproximity() As EventListener

onvrdisplayactivate

 

property onvrdisplayactivate: EventListener read write;

 

EventListener onvrdisplayactivate { get; set; }

 

var onvrdisplayactivate: EventListener { get{} set{} }

 

EventListener onvrdisplayactivate { __get; __set; }

 

Property onvrdisplayactivate() As EventListener

onvrdisplayblur

 

property onvrdisplayblur: EventListener read write;

 

EventListener onvrdisplayblur { get; set; }

 

var onvrdisplayblur: EventListener { get{} set{} }

 

EventListener onvrdisplayblur { __get; __set; }

 

Property onvrdisplayblur() As EventListener

onvrdisplayconnect

 

property onvrdisplayconnect: EventListener read write;

 

EventListener onvrdisplayconnect { get; set; }

 

var onvrdisplayconnect: EventListener { get{} set{} }

 

EventListener onvrdisplayconnect { __get; __set; }

 

Property onvrdisplayconnect() As EventListener

onvrdisplaydeactivate

 

property onvrdisplaydeactivate: EventListener read write;

 

EventListener onvrdisplaydeactivate { get; set; }

 

var onvrdisplaydeactivate: EventListener { get{} set{} }

 

EventListener onvrdisplaydeactivate { __get; __set; }

 

Property onvrdisplaydeactivate() As EventListener

onvrdisplaydisconnect

 

property onvrdisplaydisconnect: EventListener read write;

 

EventListener onvrdisplaydisconnect { get; set; }

 

var onvrdisplaydisconnect: EventListener { get{} set{} }

 

EventListener onvrdisplaydisconnect { __get; __set; }

 

Property onvrdisplaydisconnect() As EventListener

onvrdisplayfocus

 

property onvrdisplayfocus: EventListener read write;

 

EventListener onvrdisplayfocus { get; set; }

 

var onvrdisplayfocus: EventListener { get{} set{} }

 

EventListener onvrdisplayfocus { __get; __set; }

 

Property onvrdisplayfocus() As EventListener

onvrdisplaypresentchange

 

property onvrdisplaypresentchange: EventListener read write;

 

EventListener onvrdisplaypresentchange { get; set; }

 

var onvrdisplaypresentchange: EventListener { get{} set{} }

 

EventListener onvrdisplaypresentchange { __get; __set; }

 

Property onvrdisplaypresentchange() As EventListener

open

Opens a new window.

 

method open(parurl: dynamic; parwindowName: dynamic; parwindowFeatures: dynamic): dynamic

 

dynamic open(dynamic parurl, dynamic parwindowName, dynamic parwindowFeatures)

 

func open(_ parurl: dynamic, _ parwindowName: dynamic, _ parwindowFeatures: dynamic) -> dynamic

 

dynamic open(dynamic parurl, dynamic parwindowName, dynamic parwindowFeatures)

 

Function open(parurl As dynamic, parwindowName As dynamic, parwindowFeatures As dynamic) As dynamic

Parameters:

  • parurl:
  • parwindowName:
  • parwindowFeatures:

opener

 

property opener: Window read write;

 

Window opener { get; set; }

 

var opener: Window { get{} set{} }

 

Window opener { __get; __set; }

 

Property opener() As Window

origin

 

property origin: String read;

 

String origin { get; }

 

var origin: String { get{} }

 

String origin { __get; }

 

ReadOnly Property origin() As String

outerHeight

 

property outerHeight: Int32 read;

 

Int32 outerHeight { get; }

 

var outerHeight: Int32 { get{} }

 

Int32 outerHeight { __get; }

 

ReadOnly Property outerHeight() As Int32

outerWidth

 

property outerWidth: Int32 read;

 

Int32 outerWidth { get; }

 

var outerWidth: Int32 { get{} }

 

Int32 outerWidth { __get; }

 

ReadOnly Property outerWidth() As Int32

parent

 

property parent: dynamic read;

 

dynamic parent { get; }

 

var parent: dynamic { get{} }

 

dynamic parent { __get; }

 

ReadOnly Property parent() As dynamic

performance

 

property performance: dynamic read;

 

dynamic performance { get; }

 

var performance: dynamic { get{} }

 

dynamic performance { __get; }

 

ReadOnly Property performance() As dynamic

personalbar

 

property personalbar: dynamic read;

 

dynamic personalbar { get; }

 

var personalbar: dynamic { get{} }

 

dynamic personalbar { __get; }

 

ReadOnly Property personalbar() As dynamic

postMessage

Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.

 

method postMessage(parmessage: dynamic; partargetOrigin: dynamic; partransfer: dynamic): String

 

String postMessage(dynamic parmessage, dynamic partargetOrigin, dynamic partransfer)

 

func postMessage(_ parmessage: dynamic, _ partargetOrigin: dynamic, _ partransfer: dynamic) -> String

 

String postMessage(dynamic parmessage, dynamic partargetOrigin, dynamic partransfer)

 

Function postMessage(parmessage As dynamic, partargetOrigin As dynamic, partransfer As dynamic) As String

Parameters:

  • parmessage:
  • partargetOrigin:
  • partransfer:

print

Opens the Print Dialog to print the current document.

 

method print: dynamic

 

dynamic print()

 

func print() -> dynamic

 

dynamic print()

 

Function print() As dynamic

prompt

Returns the text entered by the user in a prompt dialog.

 

method prompt(parmessage: dynamic; pardefault: dynamic): String

 

String prompt(dynamic parmessage, dynamic pardefault)

 

func prompt(_ parmessage: dynamic, _ pardefault: dynamic) -> String

 

String prompt(dynamic parmessage, dynamic pardefault)

 

Function prompt(parmessage As dynamic, pardefault As dynamic) As String

Parameters:

  • parmessage:
  • pardefault:

removeEventListener

Removes an event listener from the window.

 

method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • paruseCapture:

requestAnimationFrame

Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.

 

method requestAnimationFrame(parcallback: dynamic): dynamic

 

dynamic requestAnimationFrame(dynamic parcallback)

 

func requestAnimationFrame(_ parcallback: dynamic) -> dynamic

 

dynamic requestAnimationFrame(dynamic parcallback)

 

Function requestAnimationFrame(parcallback As dynamic) As dynamic

Parameters:

  • parcallback:

resizeBy

Resizes the current window by a certain amount.

 

method resizeBy: dynamic

 

dynamic resizeBy()

 

func resizeBy() -> dynamic

 

dynamic resizeBy()

 

Function resizeBy() As dynamic

resizeTo

Dynamically resizes window.

 

method resizeTo(parwidth: dynamic; parheight: dynamic): dynamic

 

dynamic resizeTo(dynamic parwidth, dynamic parheight)

 

func resizeTo(_ parwidth: dynamic, _ parheight: dynamic) -> dynamic

 

dynamic resizeTo(dynamic parwidth, dynamic parheight)

 

Function resizeTo(parwidth As dynamic, parheight As dynamic) As dynamic

Parameters:

  • parwidth:
  • parheight:

screen

 

property screen: Screen read;

 

Screen screen { get; }

 

var screen: Screen { get{} }

 

Screen screen { __get; }

 

ReadOnly Property screen() As Screen

screenX

 

property screenX: dynamic read;

 

dynamic screenX { get; }

 

var screenX: dynamic { get{} }

 

dynamic screenX { __get; }

 

ReadOnly Property screenX() As dynamic

screenY

 

property screenY: dynamic read;

 

dynamic screenY { get; }

 

var screenY: dynamic { get{} }

 

dynamic screenY { __get; }

 

ReadOnly Property screenY() As dynamic

scroll

Scrolls the window to a particular place in the document.

 

method scroll: dynamic

 

dynamic scroll()

 

func scroll() -> dynamic

 

dynamic scroll()

 

Function scroll() As dynamic

scrollbars

 

property scrollbars: dynamic read;

 

dynamic scrollbars { get; }

 

var scrollbars: dynamic { get{} }

 

dynamic scrollbars { __get; }

 

ReadOnly Property scrollbars() As dynamic

scrollBy

Scrolls the document in the window by the given amount.

 

method scrollBy: dynamic

 

dynamic scrollBy()

 

func scrollBy() -> dynamic

 

dynamic scrollBy()

 

Function scrollBy() As dynamic

scrollTo

Scrolls to a particular set of coordinates in the document.

 

method scrollTo: dynamic

 

dynamic scrollTo()

 

func scrollTo() -> dynamic

 

dynamic scrollTo()

 

Function scrollTo() As dynamic

scrollX

 

property scrollX: Int32 read;

 

Int32 scrollX { get; }

 

var scrollX: Int32 { get{} }

 

Int32 scrollX { __get; }

 

ReadOnly Property scrollX() As Int32

scrollY

 

property scrollY: Int32 read;

 

Int32 scrollY { get; }

 

var scrollY: Int32 { get{} }

 

Int32 scrollY { __get; }

 

ReadOnly Property scrollY() As Int32

sessionStorage

 

property sessionStorage: dynamic read write;

 

dynamic sessionStorage { get; set; }

 

var sessionStorage: dynamic { get{} set{} }

 

dynamic sessionStorage { __get; __set; }

 

Property sessionStorage() As dynamic

setImmediate

Executes a function after the browser has finished other heavy tasks

 

method setImmediate(parparfunc: dynamic; parparparam1: dynamic; parparparam2: dynamic): dynamic

 

dynamic setImmediate(dynamic parparfunc, dynamic parparparam1, dynamic parparparam2)

 

func setImmediate(_ parparfunc: dynamic, _ parparparam1: dynamic, _ parparparam2: dynamic) -> dynamic

 

dynamic setImmediate(dynamic parparfunc, dynamic parparparam1, dynamic parparparam2)

 

Function setImmediate(parparfunc As dynamic, parparparam1 As dynamic, parparparam2 As dynamic) As dynamic

Parameters:

  • parparfunc:
  • parparparam1:
  • parparparam2:

setInterval

 

method setInterval(parfunc: dynamic; parcode: dynamic; pardelay: dynamic; params args: array of dynamic): Int64

 

Int64 setInterval(dynamic parfunc, dynamic parcode, dynamic pardelay, params dynamic[] args)

 

func setInterval(_ parfunc: dynamic, _ parcode: dynamic, _ pardelay: dynamic, _ args: dynamic...) -> Int64

 

Int64 setInterval(dynamic parfunc, dynamic parcode, dynamic pardelay, dynamic[]... args)

 

Function setInterval(parfunc As dynamic, parcode As dynamic, pardelay As dynamic, ParamArray args As dynamic()) As Int64

Parameters:

  • parfunc:
  • parcode:
  • pardelay:
  • args:

setTimeout

Schedules a function to execute in a given amount of time.

 

method setTimeout(parfunction: dynamic; parcode: dynamic; pardelay: dynamic; pararg1: dynamic): dynamic

 

dynamic setTimeout(dynamic parfunction, dynamic parcode, dynamic pardelay, dynamic pararg1)

 

func setTimeout(_ parfunction: dynamic, _ parcode: dynamic, _ pardelay: dynamic, _ pararg1: dynamic) -> dynamic

 

dynamic setTimeout(dynamic parfunction, dynamic parcode, dynamic pardelay, dynamic pararg1)

 

Function setTimeout(parfunction As dynamic, parcode As dynamic, pardelay As dynamic, pararg1 As dynamic) As dynamic

Parameters:

  • parfunction:
  • parcode:
  • pardelay:
  • pararg1:

status

 

property status: String read write;

 

String status { get; set; }

 

var status: String { get{} set{} }

 

String status { __get; __set; }

 

Property status() As String

statusbar

 

property statusbar: dynamic read;

 

dynamic statusbar { get; }

 

var statusbar: dynamic { get{} }

 

dynamic statusbar { __get; }

 

ReadOnly Property statusbar() As dynamic

stop

This method stops window loading.

 

method stop: dynamic

 

dynamic stop()

 

func stop() -> dynamic

 

dynamic stop()

 

Function stop() As dynamic

toolbar

 

property toolbar: dynamic read;

 

dynamic toolbar { get; }

 

var toolbar: dynamic { get{} }

 

dynamic toolbar { __get; }

 

ReadOnly Property toolbar() As dynamic

top

 

property top: dynamic read;

 

dynamic top { get; }

 

var top: dynamic { get{} }

 

dynamic top { __get; }

 

ReadOnly Property top() As dynamic

visualViewport

 

property visualViewport: dynamic read;

 

dynamic visualViewport { get; }

 

var visualViewport: dynamic { get{} }

 

dynamic visualViewport { __get; }

 

ReadOnly Property visualViewport() As dynamic

window

 

property window: Window read;

 

Window window { get; }

 

var window: Window { get{} }

 

Window window { __get; }

 

ReadOnly Property window() As Window

 

caches

 

property caches: dynamic read;

 

dynamic caches { get; }

 

var caches: dynamic { get{} }

 

dynamic caches { __get; }

 

ReadOnly Property caches() As dynamic

console

 

property console: dynamic read;

 

dynamic console { get; }

 

var console: dynamic { get{} }

 

dynamic console { __get; }

 

ReadOnly Property console() As dynamic

crypto

 

property crypto: Crypto read;

 

Crypto crypto { get; }

 

var crypto: Crypto { get{} }

 

Crypto crypto { __get; }

 

ReadOnly Property crypto() As Crypto

customElements

 

property customElements: dynamic read;

 

dynamic customElements { get; }

 

var customElements: dynamic { get{} }

 

dynamic customElements { __get; }

 

ReadOnly Property customElements() As dynamic

dialogArguments

 

property dialogArguments: dynamic read;

 

dynamic dialogArguments { get; }

 

var dialogArguments: dynamic { get{} }

 

dynamic dialogArguments { __get; }

 

ReadOnly Property dialogArguments() As dynamic

document

 

property document: Document read;

 

Document document { get; }

 

var document: Document { get{} }

 

Document document { __get; }

 

ReadOnly Property document() As Document

event

 

property event: Event read;

 

Event event { get; }

 

var event: Event { get{} }

 

Event event { __get; }

 

ReadOnly Property event() As Event

frameElement

 

property frameElement: Element read;

 

Element frameElement { get; }

 

var frameElement: Element { get{} }

 

Element frameElement { __get; }

 

ReadOnly Property frameElement() As Element

frames

 

property frames: array of Document read;

 

Document[] frames { get; }

 

var frames: Document... { get{} }

 

Document[] frames { __get; }

 

ReadOnly Property frames() As Document()

fullScreen

 

property fullScreen: Boolean read write;

 

Boolean fullScreen { get; set; }

 

var fullScreen: Boolean { get{} set{} }

 

Boolean fullScreen { __get; __set; }

 

Property fullScreen() As Boolean

history

 

property history: History read;

 

History history { get; }

 

var history: History { get{} }

 

History history { __get; }

 

ReadOnly Property history() As History

indexedDB

 

property indexedDB: dynamic read;

 

dynamic indexedDB { get; }

 

var indexedDB: dynamic { get{} }

 

dynamic indexedDB { __get; }

 

ReadOnly Property indexedDB() As dynamic

innerHeight

 

property innerHeight: Int32 read;

 

Int32 innerHeight { get; }

 

var innerHeight: Int32 { get{} }

 

Int32 innerHeight { __get; }

 

ReadOnly Property innerHeight() As Int32

innerWidth

 

property innerWidth: Int32 read;

 

Int32 innerWidth { get; }

 

var innerWidth: Int32 { get{} }

 

Int32 innerWidth { __get; }

 

ReadOnly Property innerWidth() As Int32

isSecureContext

 

property isSecureContext: Boolean read;

 

Boolean isSecureContext { get; }

 

var isSecureContext: Boolean { get{} }

 

Boolean isSecureContext { __get; }

 

ReadOnly Property isSecureContext() As Boolean

length

 

property length: Int32 read;

 

Int32 length { get; }

 

var length: Int32 { get{} }

 

Int32 length { __get; }

 

ReadOnly Property length() As Int32

localStorage

 

property localStorage: Storage read;

 

Storage localStorage { get; }

 

var localStorage: Storage { get{} }

 

Storage localStorage { __get; }

 

ReadOnly Property localStorage() As Storage

location

 

property location: dynamic read write;

 

dynamic location { get; set; }

 

var location: dynamic { get{} set{} }

 

dynamic location { __get; __set; }

 

Property location() As dynamic

locationbar

 

property locationbar: dynamic read;

 

dynamic locationbar { get; }

 

var locationbar: dynamic { get{} }

 

dynamic locationbar { __get; }

 

ReadOnly Property locationbar() As dynamic

 

property menubar: dynamic read;

 

dynamic menubar { get; }

 

var menubar: dynamic { get{} }

 

dynamic menubar { __get; }

 

ReadOnly Property menubar() As dynamic

messageManager

 

property messageManager: dynamic read write;

 

dynamic messageManager { get; set; }

 

var messageManager: dynamic { get{} set{} }

 

dynamic messageManager { __get; __set; }

 

Property messageManager() As dynamic

name

 

property name: String read write;

 

String name { get; set; }

 

var name: String { get{} set{} }

 

String name { __get; __set; }

 

Property name() As String

 

property navigator: dynamic read;

 

dynamic navigator { get; }

 

var navigator: dynamic { get{} }

 

dynamic navigator { __get; }

 

ReadOnly Property navigator() As dynamic

onappinstalled

 

property onappinstalled: EventListener read write;

 

EventListener onappinstalled { get; set; }

 

var onappinstalled: EventListener { get{} set{} }

 

EventListener onappinstalled { __get; __set; }

 

Property onappinstalled() As EventListener

onbeforeinstallprompt

 

property onbeforeinstallprompt: EventListener read write;

 

EventListener onbeforeinstallprompt { get; set; }

 

var onbeforeinstallprompt: EventListener { get{} set{} }

 

EventListener onbeforeinstallprompt { __get; __set; }

 

Property onbeforeinstallprompt() As EventListener

ondevicelight

 

property ondevicelight: EventListener read write;

 

EventListener ondevicelight { get; set; }

 

var ondevicelight: EventListener { get{} set{} }

 

EventListener ondevicelight { __get; __set; }

 

Property ondevicelight() As EventListener

ondevicemotion

 

property ondevicemotion: EventListener read write;

 

EventListener ondevicemotion { get; set; }

 

var ondevicemotion: EventListener { get{} set{} }

 

EventListener ondevicemotion { __get; __set; }

 

Property ondevicemotion() As EventListener

ondeviceorientation

 

property ondeviceorientation: EventListener read write;

 

EventListener ondeviceorientation { get; set; }

 

var ondeviceorientation: EventListener { get{} set{} }

 

EventListener ondeviceorientation { __get; __set; }

 

Property ondeviceorientation() As EventListener

ondeviceproximity

 

property ondeviceproximity: EventListener read write;

 

EventListener ondeviceproximity { get; set; }

 

var ondeviceproximity: EventListener { get{} set{} }

 

EventListener ondeviceproximity { __get; __set; }

 

Property ondeviceproximity() As EventListener

ongamepadconnected

 

property ongamepadconnected: EventListener read write;

 

EventListener ongamepadconnected { get; set; }

 

var ongamepadconnected: EventListener { get{} set{} }

 

EventListener ongamepadconnected { __get; __set; }

 

Property ongamepadconnected() As EventListener

ongamepaddisconnected

 

property ongamepaddisconnected: EventListener read write;

 

EventListener ongamepaddisconnected { get; set; }

 

var ongamepaddisconnected: EventListener { get{} set{} }

 

EventListener ongamepaddisconnected { __get; __set; }

 

Property ongamepaddisconnected() As EventListener

onmozbeforepaint

 

property onmozbeforepaint: EventListener read write;

 

EventListener onmozbeforepaint { get; set; }

 

var onmozbeforepaint: EventListener { get{} set{} }

 

EventListener onmozbeforepaint { __get; __set; }

 

Property onmozbeforepaint() As EventListener

onpaint

 

property onpaint: EventListener read write;

 

EventListener onpaint { get; set; }

 

var onpaint: EventListener { get{} set{} }

 

EventListener onpaint { __get; __set; }

 

Property onpaint() As EventListener

onuserproximity

 

property onuserproximity: EventListener read write;

 

EventListener onuserproximity { get; set; }

 

var onuserproximity: EventListener { get{} set{} }

 

EventListener onuserproximity { __get; __set; }

 

Property onuserproximity() As EventListener

onvrdisplayactivate

 

property onvrdisplayactivate: EventListener read write;

 

EventListener onvrdisplayactivate { get; set; }

 

var onvrdisplayactivate: EventListener { get{} set{} }

 

EventListener onvrdisplayactivate { __get; __set; }

 

Property onvrdisplayactivate() As EventListener

onvrdisplayblur

 

property onvrdisplayblur: EventListener read write;

 

EventListener onvrdisplayblur { get; set; }

 

var onvrdisplayblur: EventListener { get{} set{} }

 

EventListener onvrdisplayblur { __get; __set; }

 

Property onvrdisplayblur() As EventListener

onvrdisplayconnect

 

property onvrdisplayconnect: EventListener read write;

 

EventListener onvrdisplayconnect { get; set; }

 

var onvrdisplayconnect: EventListener { get{} set{} }

 

EventListener onvrdisplayconnect { __get; __set; }

 

Property onvrdisplayconnect() As EventListener

onvrdisplaydeactivate

 

property onvrdisplaydeactivate: EventListener read write;

 

EventListener onvrdisplaydeactivate { get; set; }

 

var onvrdisplaydeactivate: EventListener { get{} set{} }

 

EventListener onvrdisplaydeactivate { __get; __set; }

 

Property onvrdisplaydeactivate() As EventListener

onvrdisplaydisconnect

 

property onvrdisplaydisconnect: EventListener read write;

 

EventListener onvrdisplaydisconnect { get; set; }

 

var onvrdisplaydisconnect: EventListener { get{} set{} }

 

EventListener onvrdisplaydisconnect { __get; __set; }

 

Property onvrdisplaydisconnect() As EventListener

onvrdisplayfocus

 

property onvrdisplayfocus: EventListener read write;

 

EventListener onvrdisplayfocus { get; set; }

 

var onvrdisplayfocus: EventListener { get{} set{} }

 

EventListener onvrdisplayfocus { __get; __set; }

 

Property onvrdisplayfocus() As EventListener

onvrdisplaypresentchange

 

property onvrdisplaypresentchange: EventListener read write;

 

EventListener onvrdisplaypresentchange { get; set; }

 

var onvrdisplaypresentchange: EventListener { get{} set{} }

 

EventListener onvrdisplaypresentchange { __get; __set; }

 

Property onvrdisplaypresentchange() As EventListener

opener

 

property opener: Window read write;

 

Window opener { get; set; }

 

var opener: Window { get{} set{} }

 

Window opener { __get; __set; }

 

Property opener() As Window

origin

 

property origin: String read;

 

String origin { get; }

 

var origin: String { get{} }

 

String origin { __get; }

 

ReadOnly Property origin() As String

outerHeight

 

property outerHeight: Int32 read;

 

Int32 outerHeight { get; }

 

var outerHeight: Int32 { get{} }

 

Int32 outerHeight { __get; }

 

ReadOnly Property outerHeight() As Int32

outerWidth

 

property outerWidth: Int32 read;

 

Int32 outerWidth { get; }

 

var outerWidth: Int32 { get{} }

 

Int32 outerWidth { __get; }

 

ReadOnly Property outerWidth() As Int32

parent

 

property parent: dynamic read;

 

dynamic parent { get; }

 

var parent: dynamic { get{} }

 

dynamic parent { __get; }

 

ReadOnly Property parent() As dynamic

performance

 

property performance: dynamic read;

 

dynamic performance { get; }

 

var performance: dynamic { get{} }

 

dynamic performance { __get; }

 

ReadOnly Property performance() As dynamic

personalbar

 

property personalbar: dynamic read;

 

dynamic personalbar { get; }

 

var personalbar: dynamic { get{} }

 

dynamic personalbar { __get; }

 

ReadOnly Property personalbar() As dynamic

screen

 

property screen: Screen read;

 

Screen screen { get; }

 

var screen: Screen { get{} }

 

Screen screen { __get; }

 

ReadOnly Property screen() As Screen

screenX

 

property screenX: dynamic read;

 

dynamic screenX { get; }

 

var screenX: dynamic { get{} }

 

dynamic screenX { __get; }

 

ReadOnly Property screenX() As dynamic

screenY

 

property screenY: dynamic read;

 

dynamic screenY { get; }

 

var screenY: dynamic { get{} }

 

dynamic screenY { __get; }

 

ReadOnly Property screenY() As dynamic

scrollbars

 

property scrollbars: dynamic read;

 

dynamic scrollbars { get; }

 

var scrollbars: dynamic { get{} }

 

dynamic scrollbars { __get; }

 

ReadOnly Property scrollbars() As dynamic

scrollX

 

property scrollX: Int32 read;

 

Int32 scrollX { get; }

 

var scrollX: Int32 { get{} }

 

Int32 scrollX { __get; }

 

ReadOnly Property scrollX() As Int32

scrollY

 

property scrollY: Int32 read;

 

Int32 scrollY { get; }

 

var scrollY: Int32 { get{} }

 

Int32 scrollY { __get; }

 

ReadOnly Property scrollY() As Int32

sessionStorage

 

property sessionStorage: dynamic read write;

 

dynamic sessionStorage { get; set; }

 

var sessionStorage: dynamic { get{} set{} }

 

dynamic sessionStorage { __get; __set; }

 

Property sessionStorage() As dynamic

status

 

property status: String read write;

 

String status { get; set; }

 

var status: String { get{} set{} }

 

String status { __get; __set; }

 

Property status() As String

statusbar

 

property statusbar: dynamic read;

 

dynamic statusbar { get; }

 

var statusbar: dynamic { get{} }

 

dynamic statusbar { __get; }

 

ReadOnly Property statusbar() As dynamic

toolbar

 

property toolbar: dynamic read;

 

dynamic toolbar { get; }

 

var toolbar: dynamic { get{} }

 

dynamic toolbar { __get; }

 

ReadOnly Property toolbar() As dynamic

top

 

property top: dynamic read;

 

dynamic top { get; }

 

var top: dynamic { get{} }

 

dynamic top { __get; }

 

ReadOnly Property top() As dynamic

visualViewport

 

property visualViewport: dynamic read;

 

dynamic visualViewport { get; }

 

var visualViewport: dynamic { get{} }

 

dynamic visualViewport { __get; }

 

ReadOnly Property visualViewport() As dynamic

window

 

property window: Window read;

 

Window window { get; }

 

var window: Window { get{} }

 

Window window { __get; }

 

ReadOnly Property window() As Window

 

addEventListener

Register an event handler to a specific event type on the window.

 

method addEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; parcapture: dynamic; paronce: dynamic; parpassive: dynamic): dynamic

 

dynamic addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)

 

func addEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ parcapture: dynamic, _ paronce: dynamic, _ parpassive: dynamic) -> dynamic

 

dynamic addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)

 

Function addEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, parcapture As dynamic, paronce As dynamic, parpassive As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • parcapture:
  • paronce:
  • parpassive:

alert

Displays an alert dialog.

 

method alert(parmessage: dynamic): dynamic

 

dynamic alert(dynamic parmessage)

 

func alert(_ parmessage: dynamic) -> dynamic

 

dynamic alert(dynamic parmessage)

 

Function alert(parmessage As dynamic) As dynamic

Parameters:

  • parmessage:

atob

Decodes a string of data which has been encoded using base-64 encoding.

 

method atob(parencodedData: dynamic): String

 

String atob(dynamic parencodedData)

 

func atob(_ parencodedData: dynamic) -> String

 

String atob(dynamic parencodedData)

 

Function atob(parencodedData As dynamic) As String

Parameters:

  • parencodedData:

blur

Sets focus away from the window.

 

method blur: dynamic

 

dynamic blur()

 

func blur() -> dynamic

 

dynamic blur()

 

Function blur() As dynamic

btoa

Creates a base-64 encoded ASCII string from a string of binary data.

 

method btoa(parstringToEncode: dynamic): String

 

String btoa(dynamic parstringToEncode)

 

func btoa(_ parstringToEncode: dynamic) -> String

 

String btoa(dynamic parstringToEncode)

 

Function btoa(parstringToEncode As dynamic) As String

Parameters:

  • parstringToEncode:

clearImmediate

Cancels the repeated execution set using setImmediate.

 

method clearImmediate(parimmediateID: dynamic): dynamic

 

dynamic clearImmediate(dynamic parimmediateID)

 

func clearImmediate(_ parimmediateID: dynamic) -> dynamic

 

dynamic clearImmediate(dynamic parimmediateID)

 

Function clearImmediate(parimmediateID As dynamic) As dynamic

Parameters:

  • parimmediateID:

clearInterval

Cancels the repeated execution set using WindowOrWorkerGlobalScope.setInterval().

 

method clearInterval(parintervalID: dynamic): dynamic

 

dynamic clearInterval(dynamic parintervalID)

 

func clearInterval(_ parintervalID: dynamic) -> dynamic

 

dynamic clearInterval(dynamic parintervalID)

 

Function clearInterval(parintervalID As dynamic) As dynamic

Parameters:

  • parintervalID:

clearTimeout

Cancels the delayed execution set using WindowOrWorkerGlobalScope.setTimeout().

 

method clearTimeout(partimeoutID: dynamic): dynamic

 

dynamic clearTimeout(dynamic partimeoutID)

 

func clearTimeout(_ partimeoutID: dynamic) -> dynamic

 

dynamic clearTimeout(dynamic partimeoutID)

 

Function clearTimeout(partimeoutID As dynamic) As dynamic

Parameters:

  • partimeoutID:

close

Closes the current window.

 

method close: dynamic

 

dynamic close()

 

func close() -> dynamic

 

dynamic close()

 

Function close() As dynamic

confirm

Displays a dialog with a message that the user needs to respond to.

 

method confirm(parmessage: dynamic): dynamic

 

dynamic confirm(dynamic parmessage)

 

func confirm(_ parmessage: dynamic) -> dynamic

 

dynamic confirm(dynamic parmessage)

 

Function confirm(parmessage As dynamic) As dynamic

Parameters:

  • parmessage:

createImageBitmap

Accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. Optionally the source is cropped to the rectangle of pixels originating at (sx, sy) with width sw, and height sh.

 

method createImageBitmap(parimage: dynamic; parsx: dynamic; parsy: dynamic; parsw: dynamic; parsh: dynamic; paroptions: dynamic): Int32

 

Int32 createImageBitmap(dynamic parimage, dynamic parsx, dynamic parsy, dynamic parsw, dynamic parsh, dynamic paroptions)

 

func createImageBitmap(_ parimage: dynamic, _ parsx: dynamic, _ parsy: dynamic, _ parsw: dynamic, _ parsh: dynamic, _ paroptions: dynamic) -> Int32

 

Int32 createImageBitmap(dynamic parimage, dynamic parsx, dynamic parsy, dynamic parsw, dynamic parsh, dynamic paroptions)

 

Function createImageBitmap(parimage As dynamic, parsx As dynamic, parsy As dynamic, parsw As dynamic, parsh As dynamic, paroptions As dynamic) As Int32

Parameters:

  • parimage:
  • parsx:
  • parsy:
  • parsw:
  • parsh:
  • paroptions:

dispatchEvent

Used to trigger an event.

 

method dispatchEvent(parevent: dynamic): dynamic

 

dynamic dispatchEvent(dynamic parevent)

 

func dispatchEvent(_ parevent: dynamic) -> dynamic

 

dynamic dispatchEvent(dynamic parevent)

 

Function dispatchEvent(parevent As dynamic) As dynamic

Parameters:

  • parevent:

fetch

Starts the process of fetching a resource from the network.

 

method fetch(parresource: dynamic; parinit: dynamic; parmethod: dynamic; parheaders: dynamic; parbody: dynamic; parmode: dynamic; parcredentials: dynamic; parcache: dynamic; parredirect: dynamic; parreferrer: dynamic; parreferrerPolicy: dynamic; parintegrity: dynamic; parkeepalive: dynamic; parsignal: dynamic): dynamic

 

dynamic fetch(dynamic parresource, dynamic parinit, dynamic parmethod, dynamic parheaders, dynamic parbody, dynamic parmode, dynamic parcredentials, dynamic parcache, dynamic parredirect, dynamic parreferrer, dynamic parreferrerPolicy, dynamic parintegrity, dynamic parkeepalive, dynamic parsignal)

 

func fetch(_ parresource: dynamic, _ parinit: dynamic, _ parmethod: dynamic, _ parheaders: dynamic, _ parbody: dynamic, _ parmode: dynamic, _ parcredentials: dynamic, _ parcache: dynamic, _ parredirect: dynamic, _ parreferrer: dynamic, _ parreferrerPolicy: dynamic, _ parintegrity: dynamic, _ parkeepalive: dynamic, _ parsignal: dynamic) -> dynamic

 

dynamic fetch(dynamic parresource, dynamic parinit, dynamic parmethod, dynamic parheaders, dynamic parbody, dynamic parmode, dynamic parcredentials, dynamic parcache, dynamic parredirect, dynamic parreferrer, dynamic parreferrerPolicy, dynamic parintegrity, dynamic parkeepalive, dynamic parsignal)

 

Function fetch(parresource As dynamic, parinit As dynamic, parmethod As dynamic, parheaders As dynamic, parbody As dynamic, parmode As dynamic, parcredentials As dynamic, parcache As dynamic, parredirect As dynamic, parreferrer As dynamic, parreferrerPolicy As dynamic, parintegrity As dynamic, parkeepalive As dynamic, parsignal As dynamic) As dynamic

Parameters:

  • parresource:
  • parinit:
  • parmethod:
  • parheaders:
  • parbody:
  • parmode:
  • parcredentials:
  • parcache:
  • parredirect:
  • parreferrer:
  • parreferrerPolicy:
  • parintegrity:
  • parkeepalive:
  • parsignal:

find

Searches for a given string in a window.

 

method find(parparaString: dynamic; paraCaseSensitive: dynamic; paraBackwards: dynamic; paraWrapAround: dynamic; paraWholeWord: dynamic; paraSearchInFrames: dynamic; paraShowDialog: dynamic): String

 

String find(dynamic parparaString, dynamic paraCaseSensitive, dynamic paraBackwards, dynamic paraWrapAround, dynamic paraWholeWord, dynamic paraSearchInFrames, dynamic paraShowDialog)

 

func find(_ parparaString: dynamic, _ paraCaseSensitive: dynamic, _ paraBackwards: dynamic, _ paraWrapAround: dynamic, _ paraWholeWord: dynamic, _ paraSearchInFrames: dynamic, _ paraShowDialog: dynamic) -> String

 

String find(dynamic parparaString, dynamic paraCaseSensitive, dynamic paraBackwards, dynamic paraWrapAround, dynamic paraWholeWord, dynamic paraSearchInFrames, dynamic paraShowDialog)

 

Function find(parparaString As dynamic, paraCaseSensitive As dynamic, paraBackwards As dynamic, paraWrapAround As dynamic, paraWholeWord As dynamic, paraSearchInFrames As dynamic, paraShowDialog As dynamic) As String

Parameters:

  • parparaString:
  • paraCaseSensitive:
  • paraBackwards:
  • paraWrapAround:
  • paraWholeWord:
  • paraSearchInFrames:
  • paraShowDialog:

focus

Sets focus on the current window.

 

method focus: dynamic

 

dynamic focus()

 

func focus() -> dynamic

 

dynamic focus()

 

Function focus() As dynamic

getComputedStyle

Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.

 

method getComputedStyle(parelement: dynamic): HTMLElement

 

HTMLElement getComputedStyle(dynamic parelement)

 

func getComputedStyle(_ parelement: dynamic) -> HTMLElement

 

HTMLElement getComputedStyle(dynamic parelement)

 

Function getComputedStyle(parelement As dynamic) As HTMLElement

Parameters:

  • parelement:

getSelection

Returns the selection object representing the selected item(s).

 

method getSelection: dynamic

 

dynamic getSelection()

 

func getSelection() -> dynamic

 

dynamic getSelection()

 

Function getSelection() As dynamic

matchMedia

Returns a MediaQueryList object representing the specified media query string.

 

method matchMedia(parmediaQueryString: dynamic): dynamic

 

dynamic matchMedia(dynamic parmediaQueryString)

 

func matchMedia(_ parmediaQueryString: dynamic) -> dynamic

 

dynamic matchMedia(dynamic parmediaQueryString)

 

Function matchMedia(parmediaQueryString As dynamic) As dynamic

Parameters:

  • parmediaQueryString:

maximize

FIXME: NeedsContents

 

method maximize: dynamic

 

dynamic maximize()

 

func maximize() -> dynamic

 

dynamic maximize()

 

Function maximize() As dynamic

minimize

Minimizes the window.

 

method minimize: dynamic

 

dynamic minimize()

 

func minimize() -> dynamic

 

dynamic minimize()

 

Function minimize() As dynamic

moveBy

Moves the current window by a specified amount.

 

method moveBy: dynamic

 

dynamic moveBy()

 

func moveBy() -> dynamic

 

dynamic moveBy()

 

Function moveBy() As dynamic

moveTo

Moves the window to the specified coordinates.

 

method moveTo: dynamic

 

dynamic moveTo()

 

func moveTo() -> dynamic

 

dynamic moveTo()

 

Function moveTo() As dynamic

open

Opens a new window.

 

method open(parurl: dynamic; parwindowName: dynamic; parwindowFeatures: dynamic): dynamic

 

dynamic open(dynamic parurl, dynamic parwindowName, dynamic parwindowFeatures)

 

func open(_ parurl: dynamic, _ parwindowName: dynamic, _ parwindowFeatures: dynamic) -> dynamic

 

dynamic open(dynamic parurl, dynamic parwindowName, dynamic parwindowFeatures)

 

Function open(parurl As dynamic, parwindowName As dynamic, parwindowFeatures As dynamic) As dynamic

Parameters:

  • parurl:
  • parwindowName:
  • parwindowFeatures:

postMessage

Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.

 

method postMessage(parmessage: dynamic; partargetOrigin: dynamic; partransfer: dynamic): String

 

String postMessage(dynamic parmessage, dynamic partargetOrigin, dynamic partransfer)

 

func postMessage(_ parmessage: dynamic, _ partargetOrigin: dynamic, _ partransfer: dynamic) -> String

 

String postMessage(dynamic parmessage, dynamic partargetOrigin, dynamic partransfer)

 

Function postMessage(parmessage As dynamic, partargetOrigin As dynamic, partransfer As dynamic) As String

Parameters:

  • parmessage:
  • partargetOrigin:
  • partransfer:

print

Opens the Print Dialog to print the current document.

 

method print: dynamic

 

dynamic print()

 

func print() -> dynamic

 

dynamic print()

 

Function print() As dynamic

prompt

Returns the text entered by the user in a prompt dialog.

 

method prompt(parmessage: dynamic; pardefault: dynamic): String

 

String prompt(dynamic parmessage, dynamic pardefault)

 

func prompt(_ parmessage: dynamic, _ pardefault: dynamic) -> String

 

String prompt(dynamic parmessage, dynamic pardefault)

 

Function prompt(parmessage As dynamic, pardefault As dynamic) As String

Parameters:

  • parmessage:
  • pardefault:

removeEventListener

Removes an event listener from the window.

 

method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • paruseCapture:

requestAnimationFrame

Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.

 

method requestAnimationFrame(parcallback: dynamic): dynamic

 

dynamic requestAnimationFrame(dynamic parcallback)

 

func requestAnimationFrame(_ parcallback: dynamic) -> dynamic

 

dynamic requestAnimationFrame(dynamic parcallback)

 

Function requestAnimationFrame(parcallback As dynamic) As dynamic

Parameters:

  • parcallback:

resizeBy

Resizes the current window by a certain amount.

 

method resizeBy: dynamic

 

dynamic resizeBy()

 

func resizeBy() -> dynamic

 

dynamic resizeBy()

 

Function resizeBy() As dynamic

resizeTo

Dynamically resizes window.

 

method resizeTo(parwidth: dynamic; parheight: dynamic): dynamic

 

dynamic resizeTo(dynamic parwidth, dynamic parheight)

 

func resizeTo(_ parwidth: dynamic, _ parheight: dynamic) -> dynamic

 

dynamic resizeTo(dynamic parwidth, dynamic parheight)

 

Function resizeTo(parwidth As dynamic, parheight As dynamic) As dynamic

Parameters:

  • parwidth:
  • parheight:

scroll

Scrolls the window to a particular place in the document.

 

method scroll: dynamic

 

dynamic scroll()

 

func scroll() -> dynamic

 

dynamic scroll()

 

Function scroll() As dynamic

scrollBy

Scrolls the document in the window by the given amount.

 

method scrollBy: dynamic

 

dynamic scrollBy()

 

func scrollBy() -> dynamic

 

dynamic scrollBy()

 

Function scrollBy() As dynamic

scrollTo

Scrolls to a particular set of coordinates in the document.

 

method scrollTo: dynamic

 

dynamic scrollTo()

 

func scrollTo() -> dynamic

 

dynamic scrollTo()

 

Function scrollTo() As dynamic

setImmediate

Executes a function after the browser has finished other heavy tasks

 

method setImmediate(parparfunc: dynamic; parparparam1: dynamic; parparparam2: dynamic): dynamic

 

dynamic setImmediate(dynamic parparfunc, dynamic parparparam1, dynamic parparparam2)

 

func setImmediate(_ parparfunc: dynamic, _ parparparam1: dynamic, _ parparparam2: dynamic) -> dynamic

 

dynamic setImmediate(dynamic parparfunc, dynamic parparparam1, dynamic parparparam2)

 

Function setImmediate(parparfunc As dynamic, parparparam1 As dynamic, parparparam2 As dynamic) As dynamic

Parameters:

  • parparfunc:
  • parparparam1:
  • parparparam2:

setInterval

 

method setInterval(parfunc: dynamic; parcode: dynamic; pardelay: dynamic; params args: array of dynamic): Int64

 

Int64 setInterval(dynamic parfunc, dynamic parcode, dynamic pardelay, params dynamic[] args)

 

func setInterval(_ parfunc: dynamic, _ parcode: dynamic, _ pardelay: dynamic, _ args: dynamic...) -> Int64

 

Int64 setInterval(dynamic parfunc, dynamic parcode, dynamic pardelay, dynamic[]... args)

 

Function setInterval(parfunc As dynamic, parcode As dynamic, pardelay As dynamic, ParamArray args As dynamic()) As Int64

Parameters:

  • parfunc:
  • parcode:
  • pardelay:
  • args:

setTimeout

Schedules a function to execute in a given amount of time.

 

method setTimeout(parfunction: dynamic; parcode: dynamic; pardelay: dynamic; pararg1: dynamic): dynamic

 

dynamic setTimeout(dynamic parfunction, dynamic parcode, dynamic pardelay, dynamic pararg1)

 

func setTimeout(_ parfunction: dynamic, _ parcode: dynamic, _ pardelay: dynamic, _ pararg1: dynamic) -> dynamic

 

dynamic setTimeout(dynamic parfunction, dynamic parcode, dynamic pardelay, dynamic pararg1)

 

Function setTimeout(parfunction As dynamic, parcode As dynamic, pardelay As dynamic, pararg1 As dynamic) As dynamic

Parameters:

  • parfunction:
  • parcode:
  • pardelay:
  • pararg1:

stop

This method stops window loading.

 

method stop: dynamic

 

dynamic stop()

 

func stop() -> dynamic

 

dynamic stop()

 

Function stop() As dynamic