

<body
<form action="" method="post" name="form1" >
<input type="text" id="id" />
</form>
</body>
<script> function myfocus() { document.getElementById('id').focus(); } </script>相信看了这些案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!
相关阅读:
html如何使用title属性让鼠标悬停来显示文字
怎样实现html的可输入下拉菜单
怎样用Meta标签代码让360浏览器默认使用极速模式打开网页
