How do I get return value from javascript function call.

Get help using Construct 2

Post » Tue Aug 01, 2017 9:58 am

Calling javascript function using Browser object is easy (Browser-> Execute javascript "myFunction();"). But how to get returned value from myFunction() into a global variable? Kindly help!
B
8
Posts: 16
Reputation: 332

Post » Tue Aug 01, 2017 10:27 am

You call it in 'set value':

... System|Set myVariable to Browser.ExecJS("myFunction();)
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Tue Aug 01, 2017 12:36 pm

thnx @Asmodean, It worked.
B
8
Posts: 16
Reputation: 332


Return to How do I....?

Who is online

Users browsing this forum: Laura_D, SnipG and 8 guests