
CHAPTER 7
168
Adding boxes and buttons
Adding JavaScript to boxes and buttons
You can add JavaScript to click boxes, text entry boxes, and buttons in Adobe Captivate projects. The JavaScript
can run when a user clicks inside or outside the box or button. Using JavaScript gives you the opportunity to
extend projects in numerous ways while adding interactivity.
You can add JavaScript when you create a new box or button, or add JavaScript to an existing box or button.
To add JavaScript to a new box or button:
1
Open an Adobe Captivate project.
2
Select the slide to which you want to add a box or button with JavaScript.
3
Select Insert > Click Box, Text Entry Box, or Button.
4
In either On success or After last attempt, select the Execute JavaScript option.
5
In JavaScript, click the browse (...) button.
The JavaScript dialog box appears.
6
Enter your JavaScript code in the text box. If you have the JavaScript in another location, you can copy it and
paste it into the text box.
7
Click OK.
8
Click OK again.
To add JavaScript to an existing box or button:
1
Open an Adobe Captivate project.
2
Select the slide containing the box or button to which you want to add JavaScript.
3
Double-click the box or button to which you want to add JavaScript.
4
In either On success or After last attempt, select the Execute JavaScript option.
5
In JavaScript, click the browse (...) button.
The JavaScript dialog box appears.
6
Enter your JavaScript code in the text box. If you have the JavaScript in another location, you can copy it and
paste it into the text box.
7
Click OK.
8
Click OK again.
Summary of Contents for 65029940 - Captivate - PC
Page 1: ...ADOBE CAPTIVATE 3 USER GUIDE...
Page 10: ...CONTENTS x...
Page 32: ...CHAPTER 2 22 Exploring the workspace...
Page 98: ...CHAPTER 3 88 Creating projects...
Page 118: ...CHAPTER 4 108 Adding text captions...
Page 236: ...CHAPTER 10 226 Slides...
Page 268: ...CHAPTER 12 258 Editing projects...
Page 312: ...CHAPTER 13 302 Creating eLearning content...
Page 363: ...353 ADOBE CAPTIVATE 3 User Guide...
Page 364: ...CHAPTER 15 354 Publishing projects...
Page 394: ...CHAPTER 17 384 Troubleshooting...
Page 408: ...INDEX 398...