How to convert Javascript with Browser Plugin?

Get help using Construct 2

Post » Fri May 31, 2013 6:53 pm

I'm looking a workaround to this javascript code is used to make HTML pages:


<script>

document.write("Available Width: " + screen.availWidth);

</script>




How to convert it to ExecJS in C2?


Thanks!
B
91
S
31
G
29
Posts: 3,129
Reputation: 27,789

Post » Sun Jun 02, 2013 9:45 pm

Solved, I figured out it needs to be "string"

Like this

Browser.ExecJS("screen.availWidth")
B
91
S
31
G
29
Posts: 3,129
Reputation: 27,789


Return to How do I....?

Who is online

Users browsing this forum: AekiroStudio and 10 guests