TOC PREV NEXT INDEX

domref



preventDefault


Cancels the event (if it is cancelable).

Syntax

event.preventDefault()
 

Parameters

None.

Example

if e.cancelable // may as well check.
 
  e.preventDefault();
 

Notes

In this case, default is the default action performed when the event is handled. Calling preventDefault cancels this action.

Specification

preventDefault
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX