How to On Close Tab Show Warning Message in Oracle Apex
1. Create a Page
2. Goto Page Properties >> HTML Header >> Paste the following code -
<script type="text/javascript">
window.onbeforeunload = function (e) { e = e || window.event;
if (e) {
e.returnValue = '?';
}
// For Safari
return '?';
};
</script>