preventDefault static method
Prevents the default action of the DOM Event e
from happening
(such as following a link in the href of the a element, or doing a POST
request with page reload when a <form>
is submitted).
Use it inside listener functions.
Implementation
external static void preventDefault(Event e);