Platform-specific JavaScript Library. Provides some platform-specific functions for the JavaScript target.
Static variables
staticread onlyglobal:Dynamic
An alias of the JS "global" object.
Concretely, it is set as the first defined value in the list of
window
, global
, self
, and this
in the top-level of the compiled output.
staticread onlynativeThis:Dynamic
nativeThis
is the JavaScript this
, which is semantically different
from the Haxe this
. Use nativeThis
only when working with external
JavaScript code.
In Haxe, this
is always bound to a class instance.
In JavaScript, this
in a function can be bound to an arbitrary
variable when the function is called using func.call(thisObj, ...)
or
func.apply(thisObj, [...])
.
Read more at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this
Static methods
staticalert (v:Dynamic):Void
Use Browser.alert() instead.
Display an alert message box containing the given message.
staticinlinedebug ():Void
Inserts a 'debugger' statement that will make a breakpoint if a debugger is available.