[Javascript] Differences with event handlers

David Dorward david at dorward.me.uk
Mon Jul 12 08:52:33 CDT 2010


On 12 Jul 2010, at 14:50, Terry Riegel wrote:
> What is the best way to get the first method to work like the second one [and stop the link the event is on from being followed]



function fn(event) {
    event.stopPropagation()
}

https://developer.mozilla.org/en/DOM:event.stopPropagation

-- 
David Dorward
http://dorward.me.uk



More information about the Javascript mailing list