

代码如下:
<body
<form action="" method="post" name="form1" >
<input type="text" id="id" />
</form>
</body>
<script> function myfocus() { document.getElementById('id').focus(); }
</script>相信看了这些案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!
相关阅读:
在html中怎样可以用超链接打开新窗口并且控制窗口属性
input输入框中的光标大小显示不一致应该怎么解决
怎样使用vertical-align让input元素和img元素对齐
