<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/eventhandlers</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 21 Aug 2008 16:39:11 GMT</pubDate>
<item>
<title>(JavaScript) Stop event propagation (stop an event from bubbling up)</title>
<link>http://snipplr.com/view/2810/stop-event-propagation-stop-an-event-from-bubbling-up/</link>
<description><![CDATA[ <p>This is useful if I have an element that is inside a container, and I want to the element's event handler to fire without triggering the container's event handler.  Then I would wrap the element's event handler function with this code.

See "PPK On JavaScript," pp. 315 and 323.</p> ]]></description>
<pubDate>Wed, 06 Jun 2007 12:09:40 GMT</pubDate>
<guid>http://snipplr.com/view/2810/stop-event-propagation-stop-an-event-from-bubbling-up/</guid>
</item>
<item>
<title>(JavaScript) Get the event object and the element that triggered the event</title>
<link>http://snipplr.com/view/2808/get-the-event-object-and-the-element-that-triggered-the-event/</link>
<description><![CDATA[ <p>See "PPK On JavaScript," p. 323.</p> ]]></description>
<pubDate>Wed, 06 Jun 2007 10:29:53 GMT</pubDate>
<guid>http://snipplr.com/view/2808/get-the-event-object-and-the-element-that-triggered-the-event/</guid>
</item>
<item>
<title>(JavaScript) Which element was clicked?</title>
<link>http://snipplr.com/view/2565/which-element-was-clicked/</link>
<description><![CDATA[ <p>How to get a reference to the element that was clicked to fire an event.  The code is gratefully cribbed from Quirksmode.org.

Updated to reflect how I actually implement this, slightly different from PPK's original.</p> ]]></description>
<pubDate>Mon, 30 Apr 2007 05:07:47 GMT</pubDate>
<guid>http://snipplr.com/view/2565/which-element-was-clicked/</guid>
</item>
</channel>
</rss>