<?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: Detect &amp; trigger action while user exit webpage</title>
	<atom:link href="http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/</link>
	<description>Just another how-to blog</description>
	<lastBuildDate>Mon, 08 Mar 2010 05:07:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sanjeewa</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-2434</link>
		<dc:creator>Sanjeewa</dc:creator>
		<pubDate>Tue, 10 Nov 2009 05:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-2434</guid>
		<description>I want to display an alert when user closes the web browser. onLoad , onBeforeUnload are get triggered when user refresh the page or try to go to another page. What I really want to track is user closing the window by pressing (X) or Cntrl+W. I’m using JSF and XHTML and it’s a SEAM environment. Should work for FF and IE. Do you have any idea?</description>
		<content:encoded><![CDATA[<p>I want to display an alert when user closes the web browser. onLoad , onBeforeUnload are get triggered when user refresh the page or try to go to another page. What I really want to track is user closing the window by pressing (X) or Cntrl+W. I’m using JSF and XHTML and it’s a SEAM environment. Should work for FF and IE. Do you have any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HTMLDesigner</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-157</link>
		<dc:creator>HTMLDesigner</dc:creator>
		<pubDate>Thu, 05 Feb 2009 13:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-157</guid>
		<description>Great!
Scenario:
I have a web page where swf is embedded (it is a game site) where user can play using up, down ,right, left arrows. 
Once a user starts his game and leaves the page as it is and browse a new page or he goes to “mycomputer” to view his folder. If the user comes to the game page the keys are not active, the user is not able to continue his game, until he/she clicks the swf.

So I want to track the event using javascript where the user leaves his page standstill.

I tried window.onblur  it is working for plain text, but not with the swf embedded. 

Problem persists only in IE browser.

Please suggest..
Thanks in advance</description>
		<content:encoded><![CDATA[<p>Great!<br />
Scenario:<br />
I have a web page where swf is embedded (it is a game site) where user can play using up, down ,right, left arrows.<br />
Once a user starts his game and leaves the page as it is and browse a new page or he goes to “mycomputer” to view his folder. If the user comes to the game page the keys are not active, the user is not able to continue his game, until he/she clicks the swf.</p>
<p>So I want to track the event using javascript where the user leaves his page standstill.</p>
<p>I tried window.onblur  it is working for plain text, but not with the swf embedded. </p>
<p>Problem persists only in IE browser.</p>
<p>Please suggest..<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Brooks</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-88</link>
		<dc:creator>Scott Brooks</dc:creator>
		<pubDate>Tue, 30 Dec 2008 11:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-88</guid>
		<description>My pleasure!  Feel free to head on over to my site to check out some of my other jQuery plugins.  I&#039;ve just started my site this month and would love some feedback on the plugins I&#039;ve built.

Regards,
-s</description>
		<content:encoded><![CDATA[<p>My pleasure!  Feel free to head on over to my site to check out some of my other jQuery plugins.  I&#8217;ve just started my site this month and would love some feedback on the plugins I&#8217;ve built.</p>
<p>Regards,<br />
-s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: h2Guru</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-85</link>
		<dc:creator>h2Guru</dc:creator>
		<pubDate>Sun, 28 Dec 2008 13:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-85</guid>
		<description>Hi Scott,
Thanks for your explanation &amp; the solution on the user exit page.
Its great!!
Cheer~~!</description>
		<content:encoded><![CDATA[<p>Hi Scott,<br />
Thanks for your explanation &#038; the solution on the user exit page.<br />
Its great!!<br />
Cheer~~!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Brooks</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-82</link>
		<dc:creator>Scott Brooks</dc:creator>
		<pubDate>Sun, 28 Dec 2008 11:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-82</guid>
		<description>What he&#039;s trying to say, even if he is being a bit snide, is that if you click on the navigation within the website to go to a separate page from where you are currently (i.e. the user lands on the homepage and then navigates to About), this triggers the event, which you don&#039;t want.

I&#039;ve created a jQuery plugin called &lt;a href=&quot;http://www.userfirstinteractive.com/2008/12/28/onuserexit-execute-code-on-user-exit/&quot; rel=&quot;nofollow&quot;&gt;onUserExit&lt;/a&gt; that allows you to specify a function to run upon leaving the webiste (closing the site, or when leaving to an outside URL).

The way this is achieved is that upon the page completing load, I actually add click methods to all internal links within the page that execute a function called &quot;userMovingWithinSite()&quot;, which sets a boolean variable called &quot;movingWithinSite&quot; to true. So now, when the user clicks a navigation link or any link on the website WITHIN the website and the onbeforeunload event triggers, I can check to see if the user is actually leaving the site, or just navigating within it. If they are indeed leaving, then we execute your function!

Regards,
Scott Brooks
UserFirst Interactive</description>
		<content:encoded><![CDATA[<p>What he&#8217;s trying to say, even if he is being a bit snide, is that if you click on the navigation within the website to go to a separate page from where you are currently (i.e. the user lands on the homepage and then navigates to About), this triggers the event, which you don&#8217;t want.</p>
<p>I&#8217;ve created a jQuery plugin called <a href="http://www.userfirstinteractive.com/2008/12/28/onuserexit-execute-code-on-user-exit/" rel="nofollow">onUserExit</a> that allows you to specify a function to run upon leaving the webiste (closing the site, or when leaving to an outside URL).</p>
<p>The way this is achieved is that upon the page completing load, I actually add click methods to all internal links within the page that execute a function called &#8220;userMovingWithinSite()&#8221;, which sets a boolean variable called &#8220;movingWithinSite&#8221; to true. So now, when the user clicks a navigation link or any link on the website WITHIN the website and the onbeforeunload event triggers, I can check to see if the user is actually leaving the site, or just navigating within it. If they are indeed leaving, then we execute your function!</p>
<p>Regards,<br />
Scott Brooks<br />
UserFirst Interactive</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Acconabaiva</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-71</link>
		<dc:creator>Acconabaiva</dc:creator>
		<pubDate>Sat, 27 Dec 2008 18:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-71</guid>
		<description>blfbyjnlzrohpxcxwell, hi admin adn people nice forum indeed. how&#039;s life? hope it&#039;s introduce branch ;)</description>
		<content:encoded><![CDATA[<p>blfbyjnlzrohpxcxwell, hi admin adn people nice forum indeed. how&#8217;s life? hope it&#8217;s introduce branch <img src='http://www.myhow2guru.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: h2Guru</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-3</link>
		<dc:creator>h2Guru</dc:creator>
		<pubDate>Thu, 20 Nov 2008 02:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-3</guid>
		<description>Hi Nirasha,
Thanks for your comments on this.
But the onbeforeunload command will be only fire while visitor try to leaving/exiting the page.

The script is working fine on my side.
Might to share your opinion on this?</description>
		<content:encoded><![CDATA[<p>Hi Nirasha,<br />
Thanks for your comments on this.<br />
But the onbeforeunload command will be only fire while visitor try to leaving/exiting the page.</p>
<p>The script is working fine on my side.<br />
Might to share your opinion on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirasha</title>
		<link>http://www.myhow2guru.com/archives/detect-trigger-action-while-user-exit-webpage/comment-page-1/#comment-2</link>
		<dc:creator>Nirasha</dc:creator>
		<pubDate>Wed, 19 Nov 2008 13:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.myhow2guru.com/?p=22#comment-2</guid>
		<description>onbeforeunload  event fires even in any button click of a page..

so its pointless.....</description>
		<content:encoded><![CDATA[<p>onbeforeunload  event fires even in any button click of a page..</p>
<p>so its pointless&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
