Skip to content

Prevent what, exactly?

This page aims to document what default exactly the various event.preventDefault() calls prevent, organized by event and target.

click

On an <a>: browser does not open the link

touchstart

Calling preventDefault() stops the browser from emitting compatibility mouse events.