默认定位文本框焦点
<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.ID.focus()// document.forms.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=IDclass=inputtxt style="background-color:#B0BFCF;width:90px"> </td></tr><tr> <td>密 码:</td> <td height=20> <input type=password size=12 name=PWD class=inputtxtstyle="background-color:#B0BFCF;width:90px"> </td> </tr> <tr> <td> <input type="submit"value="保存" class="button2"/> </td> </tr></table> </center> </form></BODY></HTML>
页:
[1]