Tuesday, October 4, 2011

Two useful javascript methods: preventDefault, stopPropagation


event.preventDefault
Cancels the event if it is cancelable, without stopping further propagation of the event

event.stopPropagation