好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

HTML元素设置焦点的方法


代码如下:


<body
<form action="" method="post" name="form1" >

<input type="text" id="id" />

</form>

</body>

<script> function myfocus() { document.getElementById('id').focus(); } </script>

查看更多关于HTML元素设置焦点的方法的详细内容...

  阅读:43次