how to prevent form default behaviour code example Example: event preventdefault event.preventDefault()