How to detect the x button in InternetExplorer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • farukcse
    New Member
    • Nov 2007
    • 52

    How to detect the x button in InternetExplorer?

    Dear,

    can anyone tell me how to detect X button in internet explorer ?

    Regards,
    Faruk Chowdhury
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you cannot. it is an application feature, not a website feature. you can try to capture any events happening at the coordinates of the close button, though. (which will be useless once the window manager uses a different setting)

    if you just want to know, whether the window is closed, use the beforeunload event.

    Comment

    • farukcse
      New Member
      • Nov 2007
      • 52

      #3
      Thanx for your prompt response...
      i also used this event function...

      Comment

      Working...