如何使页面载入后,表单的第一个文本框自动获得焦点

如题所述

<html>
<BODY onload= "document.all.aa.select() ">
<form name="myfrom">
<input type="text" name="aa">
</form>
</body>
</html>
//----如果text没值的话text就会获得焦点
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答