package js
Available on js
staticread onlyconsole:ConsoleInstanceShortcut to Window.console.
staticread onlydocument:HTMLDocumentShortcut to Window.document.
staticread onlylocation:LocationShortcut to Window.location.
staticread onlynavigator:NavigatorShortcut to Window.navigator.
staticread onlyself:WorkerGlobalScopeThe global scope typed with fields available only in a worker context.
staticread onlysupported:BoolTrue 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.
staticread onlywindow:WindowThe global window object.
staticinlinealert(v:Dynamic):VoidDisplay an alert message box containing the given message. See also Window.alert().
staticcreateXMLHttpRequest():XMLHttpRequestCreates an XMLHttpRequest, with a fallback to ActiveXObject for ancient versions of Internet Explorer.
staticgetLocalStorage():StorageSafely gets the browser's local storage, or returns null if localStorage is unsupported or disabled.
staticgetSessionStorage():StorageSafely gets the browser's session storage, or returns null if sessionStorage is unsupported or disabled.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/Browser.html