default action
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ default action
Many events have a default action associated with them.
are usually called before the default behavior takes place.
call () to prevent this normal behavior.
Depending on the browser, some events can’t be intercepted at all. for example:
Chrome:ctrl+W
or cmd+W
(close current tab) cannot be handled by JavaScript.