Skip to main content

preventDefault

method Event.preventDefault
Jump to headingEvent.preventDefault(): void

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

Return Type Jump to heading

void
Back to top