Click here to Skip to main content
11,640,297 members (62,615 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Revisions

How to detect browser close when browser [X] is clicked ?

, 2 Sep 2009 CPOL 35.1K 21
Some times we need to detect the Browser Close to perform some operation before quiting from application. Here is an Simple Way.function CheckBrowser() {// Check Browser Close [X] , Alt+F4 , File -> Close if(window.event.clientX < 0 && window.event.clientY <0) { window.open("Operation
This is an old version of the currently published tip/trick.

This article is still being written and is not currently available for general viewing.

Please go to the ASP.NET Table of Contents to view the list of available articles in this section.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150731.1 | Last Updated 2 Sep 2009
Article Copyright 2009 by Abhijit Jana
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid