Catch Browser Closing Event

<html>
<head>
    <title></title>
</head>
<body onbeforeunload="alert('Closing');">
</body>
</html>
Reactions

Post a Comment

2 Comments

  1. I have made a control in asp.net to add this event in server-side.
    You only have to add this control on the page, and you yill have an event at client side.
    you can find the source of the contol at : http://www.aspfr.com/codes/ASP-NET-S...VIA_53700.aspx

    the webpage is in french but the comment in source is in english.
    Hope it's help other to solve this problem

    ReplyDelete
  2. sorry, the webPage is http://www.aspfr.com/codes/ASP-NET-SAVOIR-QUAND-UTILISATEUR-FERME-FENETRE-VIA_53700.aspx

    ReplyDelete

Please do not post any spam link in the comment box😊

Emoji
(y)
:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
x-)
(k)

Close Menu