this . preventdefault in form submit code example Example: js preventdefault function(event) { event.preventDefault(); }