Tutorials
JavaScriptThe preventDefault() method is supported by Navigator and is equivalent of the returnValue property of event object supported by Internet Explorer. The preventDefault()method of Navigator is used to denote the event handler's return value. A Boolean true value is set to indicate canceling of any default action for the event handler.
The stopPropagation() method is supported only by Navigator and is equivalent of the cancelBubble property of event object supported by Internet Explorer. The stopPropagation()method of Navigator is used to enable or disable the event bubbling concept of an event object. The value of the stopPropagation()method is set to true to prevent the event from bubbling and if it is set to false, the event bubbling is enabled.
First Page: JavaScript Event Object Properties and Methods