六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 129|回复: 0

默认定位文本框焦点

[复制链接]

升级  32.67%

23

主题

23

主题

23

主题

秀才

Rank: 2

积分
99
 楼主| 发表于 2013-2-7 19:27:16 | 显示全部楼层 |阅读模式
 
<HTML><HEAD>    <TITLE>百宝箱业务平台——系统管理</TITLE><SCRIPT LANGUAGE="JAVASCRIPT">doc = document;////////////////////////   initFields   ///////////////////////////////////////////////////This function will initialize the button object and send focus to first input field.//function initFields(){     document.forms[0].ID.focus()// document.forms[0].submit().focus();}</SCRIPT></HEAD><BODY ><form> <center>  <table width="100%" height="100%" cellPadding=0 cellSpacing=0 border="0">  <tr>    <td>用户名:</td>     <td height=20>     <input type=text size=12 name=ID  class=inputtxt style="background-color:#B0BFCF;width:90px">      </td>  </tr>  <tr>      <td>密  码:</td>      <td height=20>       <input type=password size=12 name=PWD class=inputtxt  style="background-color:#B0BFCF;width:90px">        </td>   </tr>    <tr>     <td>        <input type="submit"  value="保存" class="button2"/>     </td>    </tr>  </table> </center> </form></BODY></HTML> 
 
 
 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表