Method PreventDefault
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Dom.dll
PreventDefault()
(DOM Level 2) Signify that the event is to be canceled.
public void PreventDefault()
Remarks
If an event is cancelable, the PreventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur and thus independently of event groups. Calling this method for a non-cancelable event has no effect.
Note: This method does not stop the event propagation; use StopPropagation or StopImmediatePropagation for that effect.
- See Also