你用
<script>
window.open("chatRoom.jsp","_blank","");
</script>
来打开聊天室

解决方案 »

  1.   

    <script language="javascript">
    window.open("chatRoom.jsp","",'status=no,menubar=no,scrollbars=no,top=50,left=50,height=400,width=550');
    </script>
      

  2.   

    或者在chatRoom.jsp中:<SCRIPT language="JavaScript">
     function toFull(){
      if(window.name=="fullscreen")return;
    var a =window.open("","fullscreen","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-800)/2))
    a.location = window.location.href
    window.opener=null
    window.close()
     }
    toFull();
     </SCRIPT>
    <html>
    <body>
    //在这儿填写具体内容
    <input type=button value=关闭 onclick=window.close()>
    </body>
    </html>
      

  3.   

    liangxuan1979(不贪) 的正确这个必须用javascript实现了另外,想知道你的聊天室有没有私聊功能,我以前也写了聊天室,可是对于私聊不知道大家是怎么处理的,我用的Vector
      

  4.   

    多谢大家帮忙……
    我的聊天室只有说悄悄话功能。liangxuan1979 你把EM告诉我,我把代码发到你信箱里去。