How to create a Close Demo Button in Adobe Captivate

Issue

How do I create a button that will close an Adobe Captivate demonstration, instead of clicking the X button or the exit button on the media playback controls?

Solution

To do this, follow the instructions below:

  1. Open the demonstration in Adobe Captivate.
  2. Select Insert > Button.
  3. In the "On Success" drop-down menu, select "Execute Javascript".
  4. In the "Execute Javascript" field, click the '...' button.
  5. Copy and paste the following Javascript code into the open dialog box:

    javascript:window.close()
  6. Click OK.
  7. Click OK.

Watch the demonstration below for the steps to create a button that will close an Adobe Captivate demonstration.

Get help faster and easier

New user?