< HTML > < HEAD > < META http-equiv ='Content-Type' content ='text/html; charset =gb2312' > < TITLE > 用快捷键使光标快速停留在某个输入框内 </ TITLE > </ HEAD > < BODY > 下面为脚本显示区(用Alt+框前首字母选择) < FORM > < LABEL FOR ="Namebox" ACCESSKEY ="N" >< U > N </ U > ame: </ LABEL > < INPUT TYPE ="TEXT" ID ="Namebox" SIZE =30 > < br > < label for ="Password" accesskey ="P" >< u > P </ u > assword: </ label > < input type ="text" id ="Password" > </ form > </ BODY ></ HTML > 这样可以通过label的属性鍵(alt+p)使得paaword文本框(它的id属性必须和label的for属性名相同)获得焦点。