defaultPrevented

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

Syntax

event.defaultPrevented

Examples

1

2

3

4

Internal

bubbles

cancelable

composed

composedPath

currentTarget

Event

eventPhase

isTrusted

preventDefault

stopImmediatePropagation

stopPropagation

target

timeStamp

type

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu