Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

setTimeout on enter JavaScript firing immediately w/o delay

Participant ,
Feb 05, 2018 Feb 05, 2018

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.

357
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 05, 2018 Feb 05, 2018
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources