Browser.ExecJS return Date to Construct 2 var

Discussion and feedback on Construct 2

Post » Sat Jul 15, 2017 2:04 pm

I do not really understand how to work with Browser.ExecJS And I am trying to return a date value with the code.
var a = new Date();
I'm trying toreturn var a but without success

Image
B
13
S
2
Posts: 95
Reputation: 861

Post » Sat Jul 15, 2017 2:13 pm

i try :
Browser.ExecJS("var a = new Date(); alert(a);")
ane its work good but if i try to retun it :
Browser.ExecJS("var a = new Date(); return a;")
its dont work.
B
13
S
2
Posts: 95
Reputation: 861

Post » Sat Jul 15, 2017 2:16 pm

ooooops i use number it's OK now
B
13
S
2
Posts: 95
Reputation: 861


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests