你不会是在 login.aspx 里再用这个函数打开 login.aspx 吧?? 那可是死循环呀.

解决方案 »

  1.   

    <html>
    <head>
    <script language="javascript">
    function massage()
    {
    msg=window.open("","msg1","width=300,height=300")
    msg.document.open()
    msg.document.write("<font color='blue'>")
    msg.document.write("Do you study?")
    msg.docuemnt.write("</font>")
    }
    </script>
    </head>
    <body onload="massage()">
    </body>
    </html>
      

  2.   

    <html>
    <head>
    <script language="javascript">
    function massage()
    {
    msg=window.open("http://www.google.com","msg1","width=300,toolbar=yew,scrollbars=yes,height=300")}
    </script>
    </head>
    <body onload="massage()">
    </body>
    </html>