The login page needs to capture the user's need to press enter to automatically submit:
Add the onkeydown event jump javascript in the body to submit the form.
The search documentation is as follows:
The onkeydown event occurs when you press a keyboard button.
Syntax: onkeydown = "sometriccriptcode"
Html tags of the event are supported;
<A>, <acronym>, <address>, <area>, <B>, <bdo>, <big>, <blockquote>, <body>, <button>, <caption>, <cite>, <code>, <dd>, <del>, <dfn>, <div>, <dt>, <em>, <fieldset>, <form>,
Javascript objects that support this event:
Differences between document, image, link, and textarea browsers:
Internet Explorer uses event. keyCode to retrieve the characters that have been pressed, While Netscape/Firefox/Opera uses event. which.
Instance: In this example, you cannot enter a number in the input box.
[Html]
<Html>
<Body>
<Script type = "text/javascript">
Function noNumbers (e)
{
Var keynum
Var keychar
Var numcheck
If (window. event) // IE
{
Keynum = e. keyCode
}
Else if (e. which) // Netscape/Firefox/Opera
{
Keynum = e. which
}
Keychar = String. fromCharCode (keynum)
Numcheck =/\ d/
Return! Numcheck. test (keychar)
}
</Script>
<Form>
<Input type = "text" onkeydown = "return noNumbers (event)"/>
</Form>
</Html>
<Html>
<Body>
<Script type = "text/javascript">
Function noNumbers (e)
{
Var keynum
Var keychar
Var numcheck
If (window. event) // IE
{
Keynum = e. keyCode
}
Else if (e. which) // Netscape/Firefox/Opera
{
Keynum = e. which
}
Keychar = String. fromCharCode (keynum)
Numcheck =/\ d/
Return! Numcheck. test (keychar)
}
</Script>
<Form>
<Input type = "text" onkeydown = "return noNumbers (event)"/>
</Form>
</Html>