Consider the following:
<div onclick='alert('you clicked the header')' class='header'> <span onclick='alert('you clicked inside the header');'>something inside the header</span> </div>
How can I make it so that when the user clicks the span, it does not fire the div‘s click event?
Use event.stopPropagation().
For IE:
window.event.cancelBubble = true