Events on any html document bubble from child up to parent calling the handlers on each element until it reaches the Body.
In order to stop this from happening you can cancel the bubble by setting the cancelBubble property on the event to true
<INPUT TYPE=”TEXT” NAME=”TEXT1″ onclick=”alert(‘TEXT1′);event.cancelBubble=true;”>Name
Taken from http://webdevelopersjournal.com/articles/jsevents2/jsevents2.html
Related posts:
- Can't Register Javascript for Invisible Control I was writing an ASP.Net Dialog Control and I overwrote...
Related posts brought to you by Yet Another Related Posts Plugin.