cancel
Showing results for 
Search instead for 
Did you mean: 

Overwrite 'Close Action' of web browser

Former Member
0 Kudos

Hi there,

Can anybody tell me how I can get the information about the close-event of the web browser? I want to show a popup when the user tries to close the web browser. Using the WDDOEXIT() method didn't help.

Is there a way to overwrite the close-function of the web browser?

Kind Regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

It is possible to have an event to close the Window ( browser) from a Web-Dyn-Pro view, but not the otherway that we try to close browser. As Abhimanyu said, its not possible currently..

Thanks,

Phani

Former Member
0 Kudos

Ok, thanks for your fast help! So it seems, that it is not possible to be informed whether the user clicks on the close button of the web browser, right? Only getting the event of closing the web dynpro window should be possible...

Kind Regards,

Daniel

Yashpal
Active Contributor
0 Kudos

Hi Daniel ,

Actually clicking the close button is a client side event not a server side that we can handle . in other technologies it is handled through client side scripting i.e Javascript. and in WDA there is no support for javascript or client side eventing.

Regards

yashpal

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Daniel,

There are no event assosiated with browser commands.

SAP should work on it, in future releases.

Regards

Abhimanyu L