HTML元素設(shè)置焦點的方法

字號:


    代碼如下:
    <body
    <form action="" method="post" name="form1" >
    <input type="text" id="id" />
    </form>
    </body>
    <script> function myfocus() { document.getElementById('id').focus(); } </script>