

代码如下:
<body
<form action="" method="post" name="form1" >
<input type="text" id="id" />
</form>
</body>
<script> function myfocus() { document.getElementById('id').focus(); } </script>相信看了这些案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!
相关阅读:
font-weight:blod的跳动问题怎样用CSS解决
canvas如何实现github404动态
html5怎样做出图片转圈的动画效果
