new Window(TInst, title, initBody)
A window that you can open.
Note (important): This uses Typings.js, so you MUST pass the type parameters at runtime. The syntax is:
new (JSWindows.Window(TInst))(title, initBody)
Parameters:
Name | Type | Description |
---|---|---|
TInst |
WindowInstantiator | The type of WindowInstantiator to use (a type that implements WindowInstantiator) |
title |
string | The title of the window. |
initBody |
string | The initial content of the window. |
Properties:
Name | Type | Description |
---|---|---|
title |
string | |
body |
string | |
document |
Document | The HTML document in the window. |
Methods
close()
Close the window.
open()
Open the window.