how to refresh a page after submitting a form in javascript code example Example: submit form javascript without refresh event.preventDefault()