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!

Close Apex browser alert message

Irha10Oct 18 2016 — edited Nov 3 2016

Hi,

Apex 4.2.6.00

Oracle 11 and 12c

I have added this JS code on my application page to get an alert message if user close the browser. it is working fine but I want this should work only when user close the browser NOT when submit or back button. Any help please? It is urgent.

$(window).on('beforeunload', function(){

        return "Do you want to close the current session";

    });

many thanks,

IR

This post has been answered by Irha10 on Oct 19 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2016
Added on Oct 18 2016
10 comments
2,315 views