Forum Discussion
Does the Exit Course trigger do anything else?
I know the "Exit Course" trigger is supposed to close the browser window -- for example when the user clicks a button. But does Exit Course do anything else besides that?
I'm asking because I have a very similar issue as this older discussion: Exit Course trigger on SL3/HTML5
The solution described in that discussion is basically what we're trying to do: using JavaScript to close the window when the exit button is clicked, instead of using SL360's Exit Course trigger. That's because we publish the course as HTML and store it in the cloud, and our website accesses it through an iframe. (We're not using an LMS.)
So, if I don't use the Exit Course trigger, is there anything the story will skip doing that it should do?
5 Replies
Hi Jeff!
Happy to provide some clarification here! The exit button also calls Javascript commands. If you’re comfortable programming in Javascript, the capabilities and results should be the same. Also, the ‘var EXIT_BEHAVIOR’ can be modified to best suit your LMS needs.
This resource explains more about the similarities between the exit trigger and Javascript:
You should not lose out on any extra functionality by omitting the exit trigger from your course!
- JeffHartlCommunity Member
Thanks for the info, Steven. I've got it working with JavaScript.
- ThomasMennenCommunity Member
Hoi Steven,
I realize this is an old threat, but since it's on-topic I'll ask it here:
Does this mean that if the user doesn't use the exit button (and so doesn't trigger Exit course) but just closes the popup window with the course, the Javascript commands won't be called? Will the user lose their status/ progress?Hello ThomasMennen,
Thanks for reaching out!
- You mentioned losing status or progress for the learner. What are the reporting settings you picked when publishing?
When a learner closes the course window using the browser's close button (instead of an "Exit course" trigger), the JavaScript commands tied to the exit trigger won't be called. Depending on the browser and LMS, the course might not have a chance to send a final status or progress update before the window closes. It would be best to check with the LMS admin to know what happens in their specific environment.
Some browsers and LMSs do their best to capture the user's progress when the window is closed, but it's not guaranteed, especially with modern browser security restrictions. To help ensure progress is saved, it's best to encourage learners to use an exit button with the proper exit trigger.
Feel free to share where you are hosting this course so others can share if they've experienced similar!
- ManishChaurasiaCommunity Member
Hi Jeff.
Which javascript function did you use to execute this action?
Related Content
- 4 months ago
- 31 days ago