Window

JS
1.1

Exposes the JavaScript Window to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript Window to Kotlin

Window()

Properties

JS
1.1

applicationCache

open val applicationCache: ApplicationCache
JS
1.1

closed

open val closed: Boolean
JS
1.1

customElements

open val customElements: CustomElementRegistry
JS
1.1

devicePixelRatio

open val devicePixelRatio: Double
JS
1.1

document

open val document: Document
JS
1.1

external

open val external: External
JS
1.1

frameElement

open val frameElement: Element?
JS
1.1

frames

open val frames: Window
JS
1.1

history

open val history: History
JS
1.1

innerHeight

open val innerHeight: Int
JS
1.1

innerWidth

open val innerWidth: Int
JS
1.1

length

open val length: Int
JS
1.1

location

open val location: Location
JS
1.1

locationbar

open val locationbar: BarProp
JS
1.1

menubar

open val menubar: BarProp
JS
1.1

name

open var name: String
JS
1.1

navigator

open val navigator: Navigator
JS
1.1

opener

open var opener: Any?
JS
1.1

outerHeight

open val outerHeight: Int
JS
1.1

outerWidth

open val outerWidth: Int
JS
1.1

pageXOffset

open val pageXOffset: Double
JS
1.1

pageYOffset

open val pageYOffset: Double
JS
1.1

parent

open val parent: Window
JS
1.1

personalbar

open val personalbar: BarProp
JS
1.1

screen

open val screen: Screen
JS
1.1

screenX

open val screenX: Int
JS
1.1

screenY

open val screenY: Int
JS
1.1

scrollbars

open val scrollbars: BarProp
JS
1.1

scrollX

open val scrollX: Double
JS
1.1

scrollY

open val scrollY: Double
JS
1.1

self

open val self: Window
JS
1.1

status

open var status: String
JS
1.1

statusbar

open val statusbar: BarProp
JS
1.1

toolbar

open val toolbar: BarProp
JS
1.1

top

open val top: Window
JS
1.1

window

open val window: Window

Functions

JS
1.1

alert

fun alert()
fun alert(message: String)
JS
1.1

blur

fun blur()
JS
1.1

cancelAnimationFrame

fun cancelAnimationFrame(handle: Int)
JS
1.1

captureEvents

fun captureEvents()
JS
1.1

close

fun close()
JS
1.1

confirm

fun confirm(message: String = definedExternally): Boolean
JS
1.1

focus

fun focus()
JS
1.1

getComputedStyle

fun getComputedStyle(
    elt: Element,
    pseudoElt: String? = definedExternally
): CSSStyleDeclaration
JS
1.1

matchMedia

fun matchMedia(query: String): MediaQueryList
JS
1.1

moveBy

fun moveBy(x: Int, y: Int)
JS
1.1

moveTo

fun moveTo(x: Int, y: Int)
JS
1.1

open

fun open(
    url: String = definedExternally,
    target: String = definedExternally,
    features: String = definedExternally
): Window?
JS
1.1

postMessage

fun postMessage(
    message: Any?,
    targetOrigin: String,
    transfer: Array<dynamic> = definedExternally)
JS
1.1

print

fun print()
JS
1.1

prompt

fun prompt(
    message: String = definedExternally,
    default: String = definedExternally
): String?
JS
1.1

releaseEvents

fun releaseEvents()
JS
1.1

requestAnimationFrame

fun requestAnimationFrame(callback: (Double) -> Unit): Int
JS
1.1

resizeBy

fun resizeBy(x: Int, y: Int)
JS
1.1

resizeTo

fun resizeTo(x: Int, y: Int)
JS
1.1

scroll

fun scroll(options: ScrollToOptions = definedExternally)
fun scroll(x: Double, y: Double)
JS
1.1

scrollBy

fun scrollBy(options: ScrollToOptions = definedExternally)
fun scrollBy(x: Double, y: Double)
JS
1.1

scrollTo

fun scrollTo(options: ScrollToOptions = definedExternally)
fun scrollTo(x: Double, y: Double)
JS
1.1

stop

fun stop()

Extension Functions

JS
1.1

get

operator fun Window.get(name: String): dynamic