Event.DefaultPrevented

Event.DefaultPrevented property

Returns true if preventDefault() was invoked while the cancelable attribute value is true, and false otherwise.

public bool DefaultPrevented { get; }

Property Value

true if [default prevented]; otherwise, false.

See Also