HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Prevent a link from opening the URL, and check if preventDefault() was called
The defaultPrevented event property checks whether the preventDefault() method was called for the event.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
defaultPrevented | 18.0 | 9.0 | 6.0 | 5.0 | 11.0 |
Return Value: | A Boolean, indicating whether the preventDefault() method was called for the event.
Possible values:
|
---|---|
DOM Version: | DOM Level 3 Events |