当前位置:Gxlcms > html代码 > HTML元素设置焦点的方法

HTML元素设置焦点的方法

时间:2021-07-01 10:21:17 帮助过:127人阅读


代码如下:

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

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

</form>

</body>

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

人气教程排行