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