Prevents the browser from performing the default action for an event.
SDK
- Safari Desktop 5.0+
Framework
- Safari Extensions JS
Declaration
void preventDefault();
Discussion
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.