I have the following table row as a script template in KnockoutJs:
If you have jQuery referenced, then you can safely call e.stopImmediatePropagation();
in your handler, as it is passed the jQuery event object. If you are not using jQuery, then you could still do something like:
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
http://jsfiddle.net/rniemeyer/mCxjz/