<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Freelancer - Freelance Web Developers &#187; Javascript</title>
	<atom:link href="http://www.freelancernepal.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freelancernepal.com</link>
	<description>Team of Freelancer - Freelance Web Designers - Freelance Web Programmers from Nepal, US, UK</description>
	<lastBuildDate>Mon, 12 Apr 2010 11:40:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Detect a click outside an element.</title>
		<link>http://www.freelancernepal.com/javascript/detect-click-outside-element/</link>
		<comments>http://www.freelancernepal.com/javascript/detect-click-outside-element/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 18:43:48 +0000</pubDate>
		<dc:creator>freelancer</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.freelancernepal.com/?p=1</guid>
		<description><![CDATA[Attach a click event to the document body which closes the window. Attach a separate click event to the window which stops propagation to the document body.

$('body').click(function() {
 //Hide the menus if visible
 });

 $('#menucontainer').click(function(event){
     event.stopPropagation();
 });

﻿
]]></description>
			<content:encoded><![CDATA[<p>Attach a click event to the document body which closes the window. Attach a separate click event to the window which stops propagation to the document body.</p>
<p><span id="more-1"></span></p>
<pre style="background-color: #e7e7e2; font-size: 11px;"><code>$('body').click(function() {
 //Hide the menus if visible
 });

 $('#menucontainer').click(function(event){
     event.stopPropagation();
 });
</code></pre>
<p>﻿</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freelancernepal.com/javascript/detect-click-outside-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

