I have a APEX screen, where I have button to go back to the calling EBS home page. I do not want the users to directly close the window, as by doing that my EBS session will also get closed.
I tried creating a "Page Unload" dynamic action. And executing the below Javascript on its TRUE action :
window.onbeforeunload = confirmExit;
function confirmExit() {
return "You have attempted to leave this page. Are you sure?";
}
But it doesn't work.
Can you please let us know, how can we do that ? How to hide or disable or block the Close (X) icon on the top of the window browser?