cancel
Showing results for 
Search instead for 
Did you mean: 

How to react to Browser close/page reload in SAP UI5

former_member450736
Active Participant
0 Kudos

Hi,

Is there any specific way i can react to browser close/or reload of page in SAP UI5 any specific API.

Thanks,

Kranthi.

Accepted Solutions (1)

Accepted Solutions (1)

former_member189945
Contributor
0 Kudos

Hi Kranthi,

You could attach jQuery.unload. Note that all browser's and browser versions do not implement unload similarly so test with your applications target browsers.

$( window ).unload(function() {

  alert( "Bye now!" );

});

Regards,

Kimmo

Message was edited by: Kimmo Jokinen

former_member450736
Active Participant
0 Kudos

Hi Kimmo,

As you suggested it is working for some browsers and for others it is not working.

Thanks,

kranthi.

Former Member
0 Kudos

This message was moderated.

Answers (0)