Sunday 11 April 2010

Javascript: stop event propagation on click event

Question:
How to stop my click event to propagate to the document level?

I have a click event on a link and one on the div container around it. How do I prevent the click event, that I handle in the click event handler on the link, to bubble up to the container?