Skip to main content
CONeill
Inspiring
February 5, 2018
Question

setTimeout on enter JavaScript firing immediately w/o delay

  • February 5, 2018
  • 1 reply
  • 394 views

Hello,

I am trying to trigger an action on the final slide of the project, where the project closes after a period of time.

The JavaScript that is triggered on enter is:

setTimeout(cpCmndExit = 1, 5000);

But Captivate will just ignore the timeout and exits immediately.

Any ideas?

Adobe Captivate 2017, up to date. Publishing HTML only.

This topic has been closed for replies.

1 reply

CONeill
CONeillAuthor
Inspiring
February 5, 2018

it's ok, I used "setInterval(DoCPExit, 5000);" instead and it worked.