defaultPrevented

The defaultPrevented JS Event returns true if preventDefault() was invoked successfully to indicate cancelation; otherwise false.

Syntax

event.defaultPrevented

Examples

1 · dispatch · false

2 · dispatch · true

3 · button · false

4 · button · false

5 · button · true

6 · input · false

7 · input · false

8 · input · true

bubbles

cancelable

composed

composedPath

currentTarget

Event

eventPhase

isTrusted

preventDefault

stopImmediatePropagation

stopPropagation

target

timeStamp

type

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu