Hello excuse my english,
How to do when i execute javascript of object browser in event sheet for get the result of javascript code to a global variable of construct ?
Thank you
If it does return a value, you can just set the value in an action:
globalvariable = browser.execjs("your code")
Develop games in your browser. Powerful, performant & highly capable.
On function your_function
On some event
- browser.execjs("
/* do some stuff maybe async then */
c2_callFunction('your_function', ['string', 1]);
");
Thank you very much !