how to make a form not refresh in js code example Example: submit form javascript without refresh event.preventDefault()