Call javascript function

Discussion and feedback on Construct 2

Post » Tue Nov 29, 2016 7:21 am

Can I click a object call javascript function?I want to know have any way to include javascript function?Thank you for help.
B
9
S
2
Posts: 13
Reputation: 551

Post » Tue Nov 29, 2016 9:04 am

Sure,
You have to inclube Browser object in your project, than you can make:
On click SpriteX : Browser>Execute Javascript >"enterYourJSCodeOrFunction();"
B
60
S
31
G
6
Posts: 124
Reputation: 7,856

Post » Wed Nov 30, 2016 6:50 am

Yura G wrote:Sure,
You have to inclube Browser object in your project, than you can make:
On click SpriteX : Browser>Execute Javascript >"enterYourJSCodeOrFunction();"

Thank you .Great tips.
B
9
S
2
Posts: 13
Reputation: 551


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests