HTML元素设置焦点的方法
建站知识 2021-07-02 22:42www.168986.cn长沙网站建设
复制代码
代码如下:<body
<form action="" method="post" name="form1" >
<input type="text" id="id" />
</form>
</body>
<script> function myfocus() { document.getElementById('id').focus(); } </script>