Posted: 6 Oct 2015 0:22 EDT Last activity: 6 Oct 2015 0:22 EDT
Confirmation Popup on tab close of a normal non-work object harness landing page
We have a normal harness being launched in the portal which is not a work object. We're using a dynamic container. We have a requirement that once we click the close icon on the tab of this harness a confirmation popup should come. We did the customization and in the script added a window.onbeforeunload event to fire an IE confirmation popup. On click of the close icon the event is getting fired and the IE Confirm box with "Leave this Page" and "Stay on this Page" buttons is coming but the parameter from the confirm box is not getting passed to the harness i.e. both on the click of "Leave this Page" and "Stay on this Page" it is closing the tab. Can someone help to point out what we're missing here.