cancel
Showing results for 
Search instead for 
Did you mean: 

How to catch browser close event in WebDynpro java application

DeeptiChavare
Active Participant
0 Kudos

Hi,

I have one Webdynpro java application. I need to display a message when user clicks browser close button. How can I catch the browser close event?

Thank you,

Deepti

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You cannot catch any browser event in WebDynpro application.

Former Member
0 Kudos

Where do you intend to display a message when the user exits the application? Are you sure the user can see it?

You may try to use wdDoExit() in the Component Controller

/** Hook method called to clean up controller. */

public void wdDoExit()

DeeptiChavare
Active Participant
0 Kudos

Hi Dzmitry,

Thanks for reply.

I want to display message before window is closed i.e. after clicking close button, but before window is actually closed.