JavaScript is the programming language of web browsers. In the introduction to this chapter, you learned that Captivate generates a lot of JavaScript code during the publication process. In this section, we will take this concept one step further by providing Captivate with your own custom JavaScript.
This approach has a lot of benefits, as well as some drawbacks. First, let's look at some of the benefits:
- The ability to leverage the full power of the JavaScript technology gives you access to a tremendous amount of power. Remember that Captivate only exposes a small subset of this technology through Advanced Actions and Variables.
- The ability to leverage all the native capabilities of the web browser (such as local storage, cookies, fetch mechanism, and so on).
- The ability to define powerful custom interactions that are not natively available in Captivate.
Now, let's go over the drawbacks:
- JavaScript is a very broad and technical...