refresh form on submit js code example Example: submit form javascript without refresh event.preventDefault()