<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Javascript &#8220;close hook&#8221; for browser window</title>
	<atom:link href="http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/feed/" rel="self" type="application/rss+xml" />
	<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/</link>
	<description>ruby, java and the rest</description>
	<lastBuildDate>Mon, 05 Dec 2011 11:57:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: schlumpf</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-193210</link>
		<dc:creator>schlumpf</dc:creator>
		<pubDate>Mon, 05 Dec 2011 11:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-193210</guid>
		<description>Hi Bharani, 
the return value is sent to nowhere. Or if it is, I don&#039;t know. I&#039;m not a javascript expert, just stumbled over this solution on the web and wrote it down here. Sorry, can&#039;t help you any further with that.</description>
		<content:encoded><![CDATA[<p>Hi Bharani,<br />
the return value is sent to nowhere. Or if it is, I don&#8217;t know. I&#8217;m not a javascript expert, just stumbled over this solution on the web and wrote it down here. Sorry, can&#8217;t help you any further with that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192790</link>
		<dc:creator>bharani</dc:creator>
		<pubDate>Sat, 03 Dec 2011 10:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192790</guid>
		<description>#Hi Bharani,

#I don’t think you can find out the return value. Showing the popup message is the last thing that happens in the onbeforeunload event/method, and after that, #javascript is not running any more, so you can’t do anything in your script to react to the user’s input. I’m sorry. You could do a workaround by storing the #information that the user tried to close the window BEFORE showing the message, like this:


ok but the return value is sent to where? i need that one so if we find means we can handle the allthings of browser is possible means we are done.
mohan.bharani@gmail.com</description>
		<content:encoded><![CDATA[<p>#Hi Bharani,</p>
<p>#I don’t think you can find out the return value. Showing the popup message is the last thing that happens in the onbeforeunload event/method, and after that, #javascript is not running any more, so you can’t do anything in your script to react to the user’s input. I’m sorry. You could do a workaround by storing the #information that the user tried to close the window BEFORE showing the message, like this:</p>
<p>ok but the return value is sent to where? i need that one so if we find means we can handle the allthings of browser is possible means we are done.<br />
<a href="mailto:mohan.bharani@gmail.com">mohan.bharani@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192789</link>
		<dc:creator>bharani</dc:creator>
		<pubDate>Sat, 03 Dec 2011 10:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192789</guid>
		<description>Hi  schlumpf ,

I was done task thanks for your help. And one more help if possible to handle the browser close,minimize etc in javascript or jquery if possible means i need how to handle entire browser options and properties,event 

Note:  All browsers to handle</description>
		<content:encoded><![CDATA[<p>Hi  schlumpf ,</p>
<p>I was done task thanks for your help. And one more help if possible to handle the browser close,minimize etc in javascript or jquery if possible means i need how to handle entire browser options and properties,event </p>
<p>Note:  All browsers to handle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schlumpf</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192616</link>
		<dc:creator>schlumpf</dc:creator>
		<pubDate>Fri, 02 Dec 2011 20:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192616</guid>
		<description>Hi Bharani,

I don&#039;t think you can find out the return value. Showing the popup message is the last thing that happens in the onbeforeunload event/method, and after that, javascript is not running any more, so you can&#039;t do anything in your script to react to the user&#039;s input. I&#039;m sorry. You could do a workaround by storing the information that the user tried to close the window BEFORE showing the message, like this: 
&lt;code&gt;
&lt;html&gt;&lt;body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  triedToClose=false;
  window.onbeforeunload = function() {
    triedToClose = true
    return &quot;Did you save your stuff?&quot;
  }

  function checkClosing() {
    if (triedToClose) {
      alert(&quot;user tried to close the window but changed his mind&quot;)
    } else {
      alert(&quot;user didn&#039;t try to close the window&quot;)
    }
  }
&lt;/script&gt;

&lt;pre&gt;
To use: 

1. click on the test link, see what happens.
2. try to close the window (browser (x)) - then select &quot;stay on page&quot;
3. click on the test link again - see that the message changed. 

&lt;a href=&quot;#&quot; onclick=&quot;checkClosing()&quot; rel=&quot;nofollow&quot;&gt;Some test link&lt;/a&gt;
&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;
&lt;/code&gt;
Please note that you can only evaluate the result if the user performs some action on your page, such as clicking on the test link. You would need to add the checkClosing() call to all your links and buttons and could even add it to the onbeforeunload function itself. not very elegant but the best I can do. 

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Hi Bharani,</p>
<p>I don&#8217;t think you can find out the return value. Showing the popup message is the last thing that happens in the onbeforeunload event/method, and after that, javascript is not running any more, so you can&#8217;t do anything in your script to react to the user&#8217;s input. I&#8217;m sorry. You could do a workaround by storing the information that the user tried to close the window BEFORE showing the message, like this:<br />
<code><br />
&lt;html>&lt;body><br />
&lt;script type="text/javascript"><br />
  triedToClose=false;<br />
  window.onbeforeunload = function() {<br />
    triedToClose = true<br />
    return "Did you save your stuff?"<br />
  }</p>
<p>  function checkClosing() {<br />
    if (triedToClose) {<br />
      alert("user tried to close the window but changed his mind")<br />
    } else {<br />
      alert("user didn't try to close the window")<br />
    }<br />
  }<br />
&lt;/script></p>
<p>&lt;pre><br />
To use: </p>
<p>1. click on the test link, see what happens.<br />
2. try to close the window (browser (x)) - then select "stay on page"<br />
3. click on the test link again - see that the message changed. </p>
<p>&lt;a href="#" onclick="checkClosing()" rel="nofollow">Some test link&lt;/a><br />
&lt;/pre>&lt;/body>&lt;/html><br />
</code><br />
Please note that you can only evaluate the result if the user performs some action on your page, such as clicking on the test link. You would need to add the checkClosing() call to all your links and buttons and could even add it to the onbeforeunload function itself. not very elegant but the best I can do. </p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192554</link>
		<dc:creator>Bharani</dc:creator>
		<pubDate>Fri, 02 Dec 2011 14:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192554</guid>
		<description>&lt;!--  



var confirmclose = true;
var sucess = false;
var ajaxSubmit = false;

function closeSession(){
	if(confirmclose) {
		return &quot;close&quot;;
	}
}

window.onbeforeunload = closeSession;





&lt;a href=&quot;http://rtscntl/&quot; rel=&quot;nofollow&quot;&gt;test&lt;/a&gt;

&lt;a href=&quot;http://www.google.com/&quot; rel=&quot;nofollow&quot;&gt;Google&lt;/a&gt;
fewfwef

--&gt;</description>
		<content:encoded><![CDATA[<p>&lt;!&#8211;  </p>
<p>var confirmclose = true;<br />
var sucess = false;<br />
var ajaxSubmit = false;</p>
<p>function closeSession(){<br />
	if(confirmclose) {<br />
		return &#8220;close&#8221;;<br />
	}<br />
}</p>
<p>window.onbeforeunload = closeSession;</p>
<p><a href="http://rtscntl/" rel="nofollow">test</a></p>
<p><a href="http://www.google.com/" rel="nofollow">Google</a><br />
fewfwef</p>
<p>&#8211;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192553</link>
		<dc:creator>Bharani</dc:creator>
		<pubDate>Fri, 02 Dec 2011 14:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192553</guid>
		<description>



var confirmclose = true;
var sucess = false;
var ajaxSubmit = false;

function closeSession(){
	if(confirmclose) {
		return &quot;close&quot;;   i want to find retrun value and tehn use ajax function to update isActive field in user table
	}
}

window.onbeforeunload = closeSession;





&lt;a href=&quot;http://rtscntl/&quot; rel=&quot;nofollow&quot;&gt;test&lt;/a&gt;

fewfwef




i need all these happen only when browser close [x] is clicked</description>
		<content:encoded><![CDATA[<p>var confirmclose = true;<br />
var sucess = false;<br />
var ajaxSubmit = false;</p>
<p>function closeSession(){<br />
	if(confirmclose) {<br />
		return &#8220;close&#8221;;   i want to find retrun value and tehn use ajax function to update isActive field in user table<br />
	}<br />
}</p>
<p>window.onbeforeunload = closeSession;</p>
<p><a href="http://rtscntl/" rel="nofollow">test</a></p>
<p>fewfwef</p>
<p>i need all these happen only when browser close [x] is clicked</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192523</link>
		<dc:creator>Bharani</dc:creator>
		<pubDate>Fri, 02 Dec 2011 09:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192523</guid>
		<description>

  

var confirmClose  = true;
var keyCode = 0;
 
function closeSession(evt){
	if(confirmClose){
		return &#039;Bharani&#039;;    i want to find retrun value and tehn use ajax function to update isActive field in user table
	}
}



window.onbeforeunload = closeSession;

 


 
&lt;!--    doSomething(event);--&gt;
 
 
&lt;a href=&quot;http://rtscntl/&quot; rel=&quot;nofollow&quot;&gt;test&lt;/a&gt;
 

&lt;a href=&quot;http://www.google.com/&quot; rel=&quot;nofollow&quot;&gt;Google&lt;/a&gt;



 



i need all these happen only when browser close [x] is clicked</description>
		<content:encoded><![CDATA[<p>var confirmClose  = true;<br />
var keyCode = 0;</p>
<p>function closeSession(evt){<br />
	if(confirmClose){<br />
		return &#8216;Bharani&#8217;;    i want to find retrun value and tehn use ajax function to update isActive field in user table<br />
	}<br />
}</p>
<p>window.onbeforeunload = closeSession;</p>
<p>&lt;!&#8211;    doSomething(event);&#8211;&gt;</p>
<p><a href="http://rtscntl/" rel="nofollow">test</a></p>
<p><a href="http://www.google.com/" rel="nofollow">Google</a></p>
<p>i need all these happen only when browser close [x] is clicked</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192498</link>
		<dc:creator>Bharani</dc:creator>
		<pubDate>Fri, 02 Dec 2011 07:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192498</guid>
		<description>i need all these happen only when browser close [x] is clicked</description>
		<content:encoded><![CDATA[<p>i need all these happen only when browser close [x] is clicked</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192497</link>
		<dc:creator>Bharani</dc:creator>
		<pubDate>Fri, 02 Dec 2011 07:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192497</guid>
		<description>function closeSession(){
	if(confirmclose) {
		return test();   ///    i want to find retrun value and tehn use ajax function to update isActive field in user table 
	}
}

if the possible to find retrun value to call the ajax function</description>
		<content:encoded><![CDATA[<p>function closeSession(){<br />
	if(confirmclose) {<br />
		return test();   ///    i want to find retrun value and tehn use ajax function to update isActive field in user table<br />
	}<br />
}</p>
<p>if the possible to find retrun value to call the ajax function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192490</link>
		<dc:creator>Bharani</dc:creator>
		<pubDate>Fri, 02 Dec 2011 06:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192490</guid>
		<description>if i using this code if user click browser close means ajax called and browser also closed pls give solution or sample page to how to use ajax when return value find to call ajax

 function closeSession() {
                //alert(confirmClose);
                if (confirmClose) {
                    //if (confirm(&#039;Are you want to close the page?&#039;)) {
                    ////alert(&#039;/Login.aspx/hostoruser_Logout&#039;);
                    //} else { return; }
                    return test();
                }
            }

            var sucess = false;
            var ajaxSubmit = false;

            function test() {
                if (sucess == true)
                    return &quot;Are you want to close the page?&quot;;

                if (ajaxSubmit == false) {
                    ajaxSubmit = true;
                    $.ajax({
                        asyn: false,
                        url: &#039;/BrowserClose.aspx&#039;,
                        type: &#039;Post&#039;,
                        data: {},
                        contentType: &quot;application/json; charset=utf-8&quot;,
                        dataType: &quot;json&quot;,
                        success: function (msg) {
                            //alert(&#039;sucess&#039;);
                            sucess = true;
                            
                        },
                        error: function (xhr, ajaxOptions, thrownError) {
                            //alert(xhr.status);
                            //alert(xhr.statusText);
                            //alert(thrownError);
                        }
                    });
                }

                setTimeout(test(), 200);
            }

            window.onbeforeunload = closeSession;


this is code right now i use but it says &quot;Too much of recursion&quot;</description>
		<content:encoded><![CDATA[<p>if i using this code if user click browser close means ajax called and browser also closed pls give solution or sample page to how to use ajax when return value find to call ajax</p>
<p> function closeSession() {<br />
                //alert(confirmClose);<br />
                if (confirmClose) {<br />
                    //if (confirm(&#8216;Are you want to close the page?&#8217;)) {<br />
                    ////alert(&#8216;/Login.aspx/hostoruser_Logout&#8217;);<br />
                    //} else { return; }<br />
                    return test();<br />
                }<br />
            }</p>
<p>            var sucess = false;<br />
            var ajaxSubmit = false;</p>
<p>            function test() {<br />
                if (sucess == true)<br />
                    return &#8220;Are you want to close the page?&#8221;;</p>
<p>                if (ajaxSubmit == false) {<br />
                    ajaxSubmit = true;<br />
                    $.ajax({<br />
                        asyn: false,<br />
                        url: &#8216;/BrowserClose.aspx&#8217;,<br />
                        type: &#8216;Post&#8217;,<br />
                        data: {},<br />
                        contentType: &#8220;application/json; charset=utf-8&#8243;,<br />
                        dataType: &#8220;json&#8221;,<br />
                        success: function (msg) {<br />
                            //alert(&#8216;sucess&#8217;);<br />
                            sucess = true;</p>
<p>                        },<br />
                        error: function (xhr, ajaxOptions, thrownError) {<br />
                            //alert(xhr.status);<br />
                            //alert(xhr.statusText);<br />
                            //alert(thrownError);<br />
                        }<br />
                    });<br />
                }</p>
<p>                setTimeout(test(), 200);<br />
            }</p>
<p>            window.onbeforeunload = closeSession;</p>
<p>this is code right now i use but it says &#8220;Too much of recursion&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schlumpf</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192376</link>
		<dc:creator>schlumpf</dc:creator>
		<pubDate>Thu, 01 Dec 2011 18:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192376</guid>
		<description>well, *I* do answer them, if you, dear Bharani, tell me what the problem is? Is there any way I can reproduce it in my own browser/webserver?</description>
		<content:encoded><![CDATA[<p>well, *I* do answer them, if you, dear Bharani, tell me what the problem is? Is there any way I can reproduce it in my own browser/webserver?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Spychalski</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192352</link>
		<dc:creator>Frank Spychalski</dc:creator>
		<pubDate>Thu, 01 Dec 2011 16:17:39 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192352</guid>
		<description>Sorry mate, I don&#039;t handle &quot;pls give me soution&quot; requests.</description>
		<content:encoded><![CDATA[<p>Sorry mate, I don&#8217;t handle &#8220;pls give me soution&#8221; requests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharani</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-192338</link>
		<dc:creator>Bharani</dc:creator>
		<pubDate>Thu, 01 Dec 2011 15:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-192338</guid>
		<description>confirmClose=true;
 function closeSession() {
                if (confirmClose) {
                    if (confirm(&#039;Are you want to close the page?&#039;)) {
                         $.ajax({
                            asyn: false,
                            url: &#039;/BrowserClose.aspx&#039;,
                            type: &#039;Post&#039;,
                            data: {},
                            contentType: &quot;application/json; charset=utf-8&quot;,
                            dataType: &quot;json&quot;,
                            success: function (msg) {
                                //alert(&#039;sucess&#039;);
                            },
                            error: function (xhr, ajaxOptions, thrownError) {
                                //alert(xhr.status);
                                //alert(xhr.statusText);
                                //alert(thrownError);
                            }
                        });
                    } else { return ; }
                }
            }

            window.onbeforeunload = closeSession;


i use ajax so pls give me soution</description>
		<content:encoded><![CDATA[<p>confirmClose=true;<br />
 function closeSession() {<br />
                if (confirmClose) {<br />
                    if (confirm(&#8216;Are you want to close the page?&#8217;)) {<br />
                         $.ajax({<br />
                            asyn: false,<br />
                            url: &#8216;/BrowserClose.aspx&#8217;,<br />
                            type: &#8216;Post&#8217;,<br />
                            data: {},<br />
                            contentType: &#8220;application/json; charset=utf-8&#8243;,<br />
                            dataType: &#8220;json&#8221;,<br />
                            success: function (msg) {<br />
                                //alert(&#8216;sucess&#8217;);<br />
                            },<br />
                            error: function (xhr, ajaxOptions, thrownError) {<br />
                                //alert(xhr.status);<br />
                                //alert(xhr.statusText);<br />
                                //alert(thrownError);<br />
                            }<br />
                        });<br />
                    } else { return ; }<br />
                }<br />
            }</p>
<p>            window.onbeforeunload = closeSession;</p>
<p>i use ajax so pls give me soution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schlumpf</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-124572</link>
		<dc:creator>schlumpf</dc:creator>
		<pubDate>Mon, 16 Nov 2009 16:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-124572</guid>
		<description>Hi Ayusman, 
sorry for the delay in replying to your last comment. I copied your code into a html file and opened it in my browser. It works as expected. 

I added some code: 
&lt;tt&gt;onclick=&quot;needToConfirm=false&quot;&lt;/tt&gt; to the google link, and then it deactivates the popup message as expected. 

If you right-click the link and say &quot;open in new window&quot;, it does set the needToConfirm to false, too (similar effect when you add &lt;tt&gt;target=&quot;blank&quot;&lt;/tt&gt; to the link which opens the link in a new window) , but the main window is NOT relaoded and the needToConfirm remains false, and when you then refresh or close the main window, the warning message is not shown. That&#039;s a problem indeed, for which I have no solution. Perhaps there&#039;s some javascript action which can be executed AFTER a link was clicked, then we could use that to set needToConfirm=&quot;true&quot; again?</description>
		<content:encoded><![CDATA[<p>Hi Ayusman,<br />
sorry for the delay in replying to your last comment. I copied your code into a html file and opened it in my browser. It works as expected. </p>
<p>I added some code:<br />
<tt>onclick="needToConfirm=false"</tt> to the google link, and then it deactivates the popup message as expected. </p>
<p>If you right-click the link and say &#8220;open in new window&#8221;, it does set the needToConfirm to false, too (similar effect when you add <tt>target="blank"</tt> to the link which opens the link in a new window) , but the main window is NOT relaoded and the needToConfirm remains false, and when you then refresh or close the main window, the warning message is not shown. That&#8217;s a problem indeed, for which I have no solution. Perhaps there&#8217;s some javascript action which can be executed AFTER a link was clicked, then we could use that to set needToConfirm=&#8221;true&#8221; again?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schlumpf</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-124571</link>
		<dc:creator>schlumpf</dc:creator>
		<pubDate>Mon, 16 Nov 2009 16:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-124571</guid>
		<description>Hi Kamatchi, 
thanks for your comment. As far as I know, it&#039;s not possible to distinguish between refresh and close events. But I&#039;m not really an expert on this... I just copied the code from somewhere else.</description>
		<content:encoded><![CDATA[<p>Hi Kamatchi,<br />
thanks for your comment. As far as I know, it&#8217;s not possible to distinguish between refresh and close events. But I&#8217;m not really an expert on this&#8230; I just copied the code from somewhere else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamatchi</title>
		<link>http://amazing-development.com/archives/2008/11/25/javascript-close-hook-for-browser-window/comment-page-1/#comment-124553</link>
		<dc:creator>Kamatchi</dc:creator>
		<pubDate>Thu, 12 Nov 2009 07:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://amazing-development.com/?p=333#comment-124553</guid>
		<description>hello

The above script is working fine while closing browser, but if i press refresh button it alerts the pop up message. I need the pop up only at the time of closing the browser not refresh or navigation through the pages.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>hello</p>
<p>The above script is working fine while closing browser, but if i press refresh button it alerts the pop up message. I need the pop up only at the time of closing the browser not refresh or navigation through the pages.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

