event prevent default on html code example Example: js preventdefault function(event) { event.preventDefault(); }