O'Reilly logo

Mastering Articulate Storyline by Ashley Chiasson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fun uses for JavaScript in Storyline

The following sections will teach you about the fun uses of JavaScript in Storyline.

Generating a random number

Generating a random number may not be the most practical use for JavaScript in Storyline for educational purposes, but it has the potential to be useful and it's pretty easy to pull off.

For ease of use, download JavaScript7.txt and copy/paste the script into the Storyline JavaScript field.

To achieve this effect, you will first want to design your slide. Here, we have a text prompt for the learner and a button, which will execute the JavaScript:

Generating a random number

Next, access the Manage Project Variables panel and add ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required