Sys.UI.DomEvent preventDefault Method

Sys.UI.DomEvent preventDefault Method

Visual Studio 2008

Prevents the default DOM event action from happening.

var domEventVar = new DomEvent(eventObject);

Use the preventDefault method to prevent the default event action for the browser from occurring. For example, if you prevent the keydown event of an input element from occurring, the character typed by the user is not automatically appended to the input element's value.

Community Additions

© 2016 Microsoft