Welcome! To experience the Leave | Stay confirmation box on your page, please make sure you are using Safari 10.
I am currently facing an issue with getting the confirmation box to display properly across different browsers.
To begin, please visit and log in with the following credentials:
username: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e6e64767b7079282a5e79737f777f72307d7173">[email protected]</a>
password: skl@0!_~!(
Once logged in, navigate to the /welcome page. Click on Settings in the left sidebar and proceed to the Membership tab.
If you can see "Enable Membership Features", click on it, make any changes, and then move to another page. You should notice the confirmation box appearing the first time you attempt to leave the page. https://i.sstatic.net/ENIeA.png
Click on "Leave" to go to your desired page, return to the Settings page, and try the same action again. In Safari, you will not see the confirmation box reappear.
The code snippet I utilized can be found at:
/* settingsPages.isChanged() is my custom function */
window.addEventListener("beforeunload", function(event) {
if (settingsPage.isChanged()) {
event.returnValue = "some string";
return "some string";
}
});
This functionality works perfectly on Google Chrome and Firefox, but seems to have an issue specifically on Safari.
Thank you for your assistance!