<body onload ="userName.focus();">
<input type=text name=password ID=Text1><input type=text name=userName ID=Text2>
</body>

解决方案 »

  1.   

    <body onload ="userName.focus();">
    <input type=text name=userName ID=Text2>
    <input type=text name=password ID=Text1>
    </body>
    一般name是前边,HOHO
      

  2.   

    <body  onload  =  "userName.focus();  "  >  
     <input  type=text  name=password  ID=Text1  >  
     
     <input  type=text  name=userName  ID=Text2  >  
     </body  > 
    大哥呀你定义的这个方法“userName.focus() ”要怎么写咯
      

  3.   

    直接在页面上写:
    <script>
    document.form1.userName.focus();
    </script>