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