CodePudding user response:
Add a label to button can be directly, you can also use js to simple judgment of password, for example: password is not input the jump in the past,A little more advanced, can add a click event to the button, realize the jump
CodePudding user response:
<script type="text/javascript">
Document. The getElementById (" go "). The onclick=function () {
Var pass=document. GetElementById (" pass "). The value;
{if (pass=="1234")
return true;
} else {
Alert (" password error ");
return false;
}
}
</script>