package js
Available on jsstatic read only console:Console
Shortcut to Window.console.
static read only document:HTMLDocument
Shortcut to Window.document.
static read only location:Location
Shortcut to Window.location.
static read only navigator:Navigator
Shortcut to Window.navigator.
static read only supported:Bool
True if a window object exists, false otherwise.
This can be used to check if the code is being executed in a non-browser environment such as node.js.
static read only window:Window
The global window object.
static alert (v:Dynamic):Void
Display an alert message box containing the given message. See also Window.alert()
.
static createXMLHttpRequest ():XMLHttpRequest
Creates an XMLHttpRequest, with a fallback to ActiveXObject for ancient versions of Internet Explorer.
static getLocalStorage ():Storage
Safely gets the browser's local storage, or returns null if localStorage is unsupported or disabled.
static getSessionStorage ():Storage
Safely gets the browser's session storage, or returns null if sessionStorage is unsupported or disabled.
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/Browser.html