This process is called Event Bubbling . What you can do is either detect the bubbles using an event handler, or prevent bubbling by stopping the protonation. You can do it with
event.stopPropagation()
In IE up to 9.
You can do it like
window.event.cancelBubble = true;
Please view here in detail.
source share