Prevents the browser from performing the default action for an event.
- Safari Desktop 5.0+
- Safari Extensions JS
Use this method to indicate that your extension has already fully handled the event; you don’t want the browser to do anything. Note that preventing the default action does not stop an event from propagating.