友情提示

  1. </head>
    <body onbeforeunload="javascript:go();" onload="toBreakWord(5); document.getElementById('TextBox1').focus()">
    <script>
    function go()
    {
    event.returnValue = "确定要离开吗?";
    }
    </script>
    </body>
  2.  document.getElementById('TextBox1').focus()" --光标停放位置
posted @ 2008-07-31 10:09  hongzk  阅读(108)  评论(0编辑  收藏  举报