Prevent a link from opening the URL, and check if preventDefault() was called:
The event.isDefaultPrevented() method checks whether the preventDefault() method was called for the event.
Parameter | Description |
---|---|
event | Required. The event parameter comes from the event binding function |