Sorry for late reply. It is like this, suppose if you have elements like this <div id="parent"> I am parent <div id="child"> I am child </div> </div>
If you assign onclick event for both parent and child. when you click on parent div then parent div event handlers will fire. when you click on child div then first child div event handlers will fire and then parent div event handler will fire. When you use "event.stopPropagation()" in the child event handler then it does not go to parent event handler. When you specify event.preventDefault() you are just stoping browser default action for that event but not stoping propagation to parent div. To stop propagation to parent element use stopPropagation function. cheers, Prajwala On Sat, Oct 25, 2008 at 7:57 AM, Hullah <[EMAIL PROTECTED]> wrote: > > I'm sorry, but I'm not following you. Can you further explain what > you mean? > > Thanks > > On Oct 24, 12:36 am, "Prajwala Manchikatla" <[EMAIL PROTECTED]> > wrote: > > You can think of stopPropagation. > http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-flow > > I hope this might help you. >