Forum

Chris Bouveret
      Has successfully completed the online course Introduction
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
      Has successfully completed the online course Basics (100)
      Has successfully completed the online course Advanced (320)
      Has successfully completed the Intermediate Certification
      Has successfully completed the Advanced Certification
    6 months ago #43690
    Up
    1
    Down
    ::

    Hi Leonid,

    please have a look at this example:

    https://demo.simplifier.io/appDirect/RefreshDemo/index.html?sap-ui-debug=RefreshDemo

    I subscribed to the onBeforeFirstShow Event and added a script block with the following code:

    window.onbeforeunload = function() {
      return "Data will be lost if you leave the page, are you sure?";
    };
    • This reply was modified 6 months ago by Chris Bouveret.
    Attachments:
    You must be logged in to view attached files.