cancel
Showing results for 
Search instead for 
Did you mean: 

Action when user click on 'X' button of Internet Explorer page

Former Member
0 Kudos

Hi All

I am looking for a solution when the user click on the 'X' ( Close button ) of the explorer window he should be given a comment saying , " You have chosen to logout with no action ".

Can some please give me some pointers on this code.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Have a look at the BSP application ITSM, and the page default.htm, this principle is implemented there.

Check also the weblog by Eddy :

/people/eddy.declercq/blog/2006/03/20/wake-me-up-before-you-go-go

And this thread where the subject has been thoroughly discussed:

Best regards,

Guillaume

Former Member
0 Kudos

Hi,

This is a rather complicated thing. You can create some javascript code that you call using the onUnLoad event in the body.

Unfortunately, this is event is launched whenever you leave the current page.

A possible solution to this is to embed your page in another page, using frames. On the page with the frame definitions, you can call the onUnload event. This way, you will only launch the event when you close the application or when you navigate away from the page that contains the frame. When you navigate in the frames, there is no problem.

This leaves another problem. You will still get the warning when you close the window after having performed the actions...

Kind regards,

Luk

Former Member
0 Kudos

Hi Luk

Can you please explain this in some coding format,

i am not able to get you clearly,.