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
96
S
34
G
29
Posts: 3,139
Reputation: 28,236

Post » Sun Jun 02, 2013 9:45 pm

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

Like this

Browser.ExecJS("screen.availWidth")
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests