1. The simplest method
<Head>
<Script language = "JavaScript" event = "onkeydown" for = "document">
<! --
If (event. keycode = 13) & event. srcelement. type! = 'Button '& event. srcelement. type! = 'Submit '& event. srcelement. type! = 'Reset' & event. srcelement. type! = '')
Event. keycode = 9;
-->
<SCRIPT>
</Head>
2. unlimited control
<HTML>
<Head>
<Meta http-equiv = "content-language" content = "ZH-CN">
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> key jump test </title>
<Script language = JavaScript>
Function keypress ()
{
Akey = event. keycode;
If (akey = 13)
{
Gotourl = 'Find. aspx? '+ Event. srcelement. Name +' = '+ event. srcelement. value;
Window. Open (gotourl );
}
}
Function keytab1 (Event)
{
Akey = event. keycode;
If (akey = 13)
{
Document. Forms [0]. useraddr. Focus ();
}
}
Function keytab2 (Event)
{
Akey = event. keycode;
If (akey = 13)
{
Document. Forms [0]. userphone. Focus ();
}
}
Function converttoupper (textbox)
{
Textbox. value = textbox. value. touppercase ();
}
Function checknum (STR)
{
Return Str. Match (/D/) = NULL
}
</SCRIPT>
<Style>
<! --
Body {font-size: 10pt; font-family:}
Div {border-style: Ridge; border-width: 1px; padding: 10px; Background-color: # daf4fe}
-->
</Style>
</Head>
<Body onload = "javascript: Document. Forms [0]. userid. Focus ()">
<Div style = "width = 254px; Height: 134px">
<Form method = "Post">
<B> query condition </B>
<HR>
User code: <input type = "text" name = "userid" size = "20" onmouseover = "this. focus () "onkeypress =" keypress () "onfocus =" this. select () "> <font face =" webdings "> n </font> <br>
User name: <input type = "text" name = "username" size = "20" onmouseover = "this. focus () "onkeypress =" keypress () "onfocus =" this. select () "> <font face =" webdings "> n </font> <br>
User Phone: <input type = "text" name = "userphone" onmouseover = "this. focus () "onchange =" converttoupper (this) "onkeypress =" keytab1 (event) "onfocus =" this. select () "> <br>
User address: <input type = "text" name = "useraddr" onmouseover = "this. focus () "onchange =" converttoupper (this) "onkeypress =" keytab2 (event) "onfocus =" this. select () ">
</Form>
</Div>
</Body>
</Html>