beforeunload not working in Safari 9.1 after the page reloads on clicking leave page button : <p>In safari 9.1,jquery beforeunload browser pop up doesnt show up for the second time.
Once the user clicks on leave page button in the pop up the page reloads.But after this the pop up never comes up though the controls goes to the code. Unless the browser is reopened again the pop up never shows up.
PFB the code</p>

<pre><code>window.addEventListener("beforeunload", function (e) {
    if(condition) {
        e.returnValue="";  // for chrome
        return "message";
    }
});
</code></pre>
