Dusting Diaz blogs about consuming events in Mozilla.
I’ve always enjoyed his postings but I have to disagree about having to wait for a ‘better’ IE: the same tricks can already be performed in current version of IE.

Simply react to a click event with this code (pasted from nextBBS’ common.php):

?View Code JAVASCRIPT
// A very experimental private function: consume the original event, if possiblefunction _killEvent(e)
{
    if(e.preventDefault)
    {
        e.preventDefault()
        e.stopPropagation();
    }
    else
    {
        e.cancelBubble = true;
        e.returnValue = false;
    }
}
If you enjoyed this post, make sure you subscribe to my RSS feed!