Constructor and Description |
---|
Window() |
Modifier and Type | Method and Description |
---|---|
static void |
alert(String message)
Displays an alert box with a specified message and an OK button.
|
static String |
atob(String encoded)
Decode a base-64 encoded string
|
static String |
btoa(String str)
Encodes a string in base-64.
|
static Console |
getConsole()
Returns the Console object
|
static double |
getDevicePixelRatio()
Returns the device pixel ratio
|
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 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).
|
@JsProperty public static Console getConsole()
@JsProperty public static double getDevicePixelRatio()
@JsProperty public static int getInnerWidth()
@JsProperty public static int getInnerHeight()
@JsProperty public static int getOuterWidth()
@JsProperty public static int getOuterHeight()
public static void alert(String message)
message
- The text to display in the alert boxpublic static String atob(String encoded)
encoded
- Required. The string which has been encoded by the btoa() method