eLBX Online 2021 | June 22 - 24


Join us for a FREE, 3-day virtual conference featuring industry experts and eLearning thought leaders. Learn about critical topics such as eLearning accessibility, learning experience design, course authoring, virtual reality, and gamification. Register today!
CHECK IT OUT

Disable 'Changes you made may not be saved' notification from browser

GuillaumeC
GuillaumeC Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 3 ☆ Roadie ☆
Hello.
When exiting a module from a LMS by closing the content window, a 'Changes you made may not be saved' message may appear.
I have read that this can be disabled with a 'window.onbeforeunload = null' command.
Do you know how this can be implemented in a Lectora title ?

Thank you for your help !

Best Answer

Answers

  • wheels
    wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 550 eLearning ROCKSTAR Admin Team
    edited May 12, 2021
    Can you tell us a little more about your use case? This prompt should help ensure learners close your course properly, with an exit button. This also prevents the learner from accidentally reloading the content (on mobile if they are swiping down to scroll up and scroll to far). There are a lot of different scenarios and it would be great to hear how you host your course. Is it displayed in it's own window, or in the same window within the LMS?

    If you absolutely need to disable it you would have a project level action:
    Project -> On Show -> Run JavaScript

    getDisplayWindow().onbeforeunload = null;
  • GuillaumeC
    GuillaumeC Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 3 ☆ Roadie ☆
    Thank you for your prompt reply.
    I will inform my client of the "risks" involved.
    Can you please confirm that the enclosed picture is the correct way to implement?
    It doesn't seem to work.

Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!