Forum Discussion
SamClark
7 years agoCommunity Member
Exit SL via JavaScript
I'd like to write a script that alerts the learner and exits the course after learner acknowledgment.
I could do a window.close() but some LMS encapsulate the course so using the built-in SL EXIT ...
MathNotermans-9
5 years agoCommunity Member
Although not perfect this one, my previous approach with a Javascript Timer does work even with layers. In fact the exit is triggered on a Slide Layer itself.
What might be missing from your sample is a timer. And i did notice some choices on Slide Layer behaviour that might cause it not to work.
However this sample works and closes the SL after a minute automatically... on any slide on any layer....
Kind regards,
Math
Related Content
- 5 months ago