Close popover
Nipun Khokhar (Khnb38)
Huntington Bank

Huntington Bank
Khnb38 Member since 2016 15 posts
Huntington Bank
Posted: May 2, 2018
Last activity: November 15, 2018

conditionally browser's confirm-exit pop-up alert when user leaves the page is not working in Non-IE browser

window.onbeforeunload is being used in userworkform HTML which conditionally displays the browser's confirm-exit pop-up on page navigation. This pop-up is displayed only when the page is closed (browser is exited) but not when the user clicks on the 'Continue' button to move to the next page of the application (this is accomplished by adding window.status to the button code in the application)

It works fine in IE but in FF/Chrome upon exit of the browser, the confirm message (pop-up) does not display and upon clicking the 'Continue' button, it displays a different alert message (this message is not our custom message but out-of-the-box firefox message). Attached is the screenshot.

function confirmExit()

if(window.status==" ")
return "Navigating away from this page may result in lost data and the inability to complete the current Account Opening or Update Ownership session.";

User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.