Export (0) Print
Expand All

Sys.UI.DomEvent preventDefault Method

.NET Framework 3.5

Prevents the default DOM event action from happening.

var domEventVar = new DomEvent(eventObject);
domEventVar.preventDefault();

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

ADD
Show:
© 2014 Microsoft