html元素設置焦點的方法

字號:


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