Home > front end >  HTML, I want to be an account password input box
HTML, I want to be an account password input box

Time:10-09

Enter the account password after the jump to another page, but not to the back-end links, simply click on the login button to jump, that directly decorated with border a tag can be a login button? Still can do?

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>