public class Window
extends java.lang.Object
Constructor and Description |
---|
Window() |
Modifier and Type | Method and Description |
---|---|
static void |
alert(java.lang.String message)
Displays an alert box with a specified message and an OK button.
|
static java.lang.String |
atob(java.lang.String encoded)
Decode a base-64 encoded string
|
static java.lang.String |
btoa(java.lang.String str)
Encodes a string in base-64.
|
static Console |
getConsole()
Returns the Console object
|
static Document |
getDocument()
Returns the Document object for the window
|
static History |
getHistory()
Returns the Router object for the window
|
static int |
getInnerHeight()
The innerHeight property returns the inner height of a window's content area.
|
static int |
getInnerWidth()
The innerWidth property returns the inner width of a window's content area.
|
static Storage |
getLocalStorage()
Returns a reference to the local storage object used to store data.
|
static Location |
getLocation()
The location object contains information about the current URL.
The location object is part of the window object and is accessed through the window.location property. |
static int |
getOuterHeight()
The outerHeight property returns the outer height of a window, including all interface elements (like
toolbars/scrollbars).
|
static int |
getOuterWidth()
The outerWidth property returns the outer width of a window, including all interface elements (like
toolbars/scrollbars).
|
static Storage |
getSessionStorage()
Returns a reference to the local storage object used to store data.
|
public static Console getConsole()
public static Document getDocument()
public static History getHistory()
public static int getInnerWidth()
public static int getInnerHeight()
public static int getOuterWidth()
public static int getOuterHeight()
public static Storage getLocalStorage()
public static Storage getSessionStorage()
public static Location getLocation()
public static void alert(java.lang.String message)
message
- The text to display in the alert boxpublic static java.lang.String atob(java.lang.String encoded)
encoded
- Required. The string which has been encoded by the btoa() methodpublic static java.lang.String btoa(java.lang.String str)
str
- Required. The string to be encoded