Fantom

 

class

dom::Win

sys::Obj
  dom::Win

@Js

Win models the DOM window object.

See pod doc for details.

Slots

alertSource

native Void alert(Obj obj)

Display a modal message box with the given text.

curSource

static native Win cur()

Return the current window instance.

docSource

native Doc doc()

Return the Doc instance for this window.

native Void hyperlink(Uri uri)

Hyperlink to the given Uri in this window.

localStorageSource

native Storage localStorage()

Return local storage instance for window.

onEventSource

native Void onEvent(Str type, Bool useCapture, |Event| handler)

Attach an event handler to the given event on this element.

reloadSource

native Void reload(Bool force := false)

Reload the current page. Use force to bypass browse cache.

sessionStorageSource

native Storage sessionStorage()

Return session storage instance for window.

uriSource

native Uri uri()

Get the Uri for this window.

viewportSource

native Size viewport()

Return the size of the window viewport in pixels.