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