HTML5 platform specific functions.
(The following functions are only available on HTML5 builds, the Html5
methods will not be available on other platforms.)
Static methods
staticrun(code:String):String
Run JavaScript code, in the browser, from Lua.
Executes the supplied string as JavaScript inside the browser.
A call to this function is blocking, the result is returned as-is, as a string.
(Internally this will execute the string using the eval()
JavaScript function.)
Parameters:
code | Javascript code to run |
---|
Returns:
result as string