why use preventDefault() with a form code example Example: event preventdefault event.preventDefault()