Version: beta
FUNCTION | |
---|---|
html5.run() | run JavaScript code, in the browser, from Lua |
html5.run(code)
eval()
JavaScript function.)
PARAMETERS
code |
Javascript code to run |
RETURNS
result |
result as string |
EXAMPLES
local res = html5.run("10 + 20") -- returns the string "30" print(res) local res_num = tonumber(res) -- convert to number print(res_num - 20) -- prints 10