don't reload page on form submit and show error code example Example: how to make form not reload page <form onsubmit="return false"> </form>