- Initialization - Author API

Author API Initialization


Controls whether Author API will ignore the default browser behavior, for showing an unsaved changes warning when navigating away from the page.

You would want to use this to suppress the browser alert if there were any unsaved changes to an Item, Activity, or Widget (Question or Feature) and the author tries to navigate away from the page.


var initializationOptions = {
    "config": {
        "global": {
            "disable_onbeforeunload": true


Attribute path

Default false

Type boolean

Related articles

  • The safeToUnload() method, which checks if the current Item or Activity being edited has any unsaved changes.
  • The setSafeToUnload() method, which updates the internal status of the specified view to override its status indicating whether it has any unsaved changes.
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.