Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Browser Close onUserExit.js

Thread Tools

Browser Close onUserExit.js

KumarHarsh KumarHarsh is offline
Junior Member
Join Date: Sep 2009
Posts: 1

This is with reference to
onUserExit jQuery Plugin
I want to use onUserExit.js
But exactly i am unable to implement.
My requirement is to know when user close the browser.
How do I know this with minimum effort.
I am using 2.0 and master page.

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.url.packed.js"></script>
<script type="text/javascript" src="js/onUserExit.js"></script>
<script type="text/javascript">
$(document).ready(function() {
execute: function()
alert("This alert was executed upon you leaving this page to another website, or when you closed the browser!");
internalURLs: " ";



Now,How do I know when user close the browser.
The alert fire everytime when there is page postback.
Where to modify code ?
Those who have use this will be able to help me

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close a TCP socket? (TCPSocket#close doesn't close it) IƱaki Baz Castillo Ruby 7 01-12-2010 01:32 PM
Browser close event (MSIE and FF): how to detect browser close ? Javascript 0 01-23-2007 12:44 AM
Why does JdbcRowSetImpl.close() close the database connection? Paul van Rossem Java 0 04-07-2005 07:01 PM
JavaMail POP3 folder.close() method close also store! Daniel Albisser Java 1 04-07-2004 03:45 PM
How to close child browser while parent close? Denon ASP .Net 1 11-14-2003 08:14 AM