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 ...
OwenHolt
5 years agoSuper Hero
The request was for JavaScript which can operate a little differently from browser to browser. I love JavaScript. It can do some amazing things. But it isn't always the right tool for the job. For something like this, I would keep it simple by simply triggering a layer with your Exit message and buttons to either close the course or dismiss the warning and return to the course (close the layer). Sometimes, the simple solution is to use the built-in functionality.
Related Content
- 5 months ago