refresh page after submit javascript code example Example: submit form javascript without refresh event.preventDefault()