Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to block users to close the window in Oracle APEX builder

Abha GJul 16 2018 — edited Jul 18 2018

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?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2018
Added on Jul 16 2018
14 comments
655 views