请问各位有没有做过那种效果
第一次点击一个事件:弹出一个窗口newWin
下一次点击:如果窗口newWin已经关闭,则重新打开该窗口newWin
如果没有关闭,则刷新该窗口newWin.

解决方案 »

  1.   

    楼主这样的话可以用层,来表示,比较好控制,也可以用真的frame,但是不太好控制,也可以用showdialog但是有限制
      

  2.   


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
     <head>
      <title> New Document </title>
     </head> <body>
     <input type="button" value="open" onclick="javascript:window.open('http://www.baidu.com','newWin');" />
     </body>
    </html>
      

  3.   

    可以。
    a.html
    <html><body>
    <input type="button" value="btn" onclick="javascript:window.open('b.html?xx=xx','aaa','height=500, width=830');"><input type="button" value="btn2" onclick="javascript:window.open('b.html?xx=yy','aaa','height=500, width=830');">
    </body></html>b.html<html><body>
    <script language="javascript">
    document.write(location.href);
    </script>
    </body></html>
      

  4.   

    window.open()的第二个参数一样就可以。