a.htm<html>
<head>
<title>New Page 1</title>
<script>
function win_open()
{
 new_open=window.open('b.htm','','height=200,width=200')
 new_open.focus();
 
}
</script>
</head>
<body>
<input type="button" onClick="win_open()">
</body>
</html>
*******************************
b.htm<html>
<head>
<title>New Page 2</title>
<script>
function close_win()
{   c_win.close()
}
</script>
</head>
<body onBlur="this.focus()">
<form method="POST" action="" webbot-action="">
  
  <p><input type="button" value="关闭" name="B3" onClick="close_win()"></p>
</form></body>
</html>

解决方案 »

  1.   

    我要的功能是像realone player里面的ontop功能那样,可以点击其他的东西,但是他仍然在最上面啊
      

  2.   

    var winstr = "";
    winstr = winstr +"confirmdialog.jsp?yhbh="+yhbh;
    var sizestr = "";
    sizestr ="dialogheight=550px;dialogwidth=450px;status=no"var _return=window.showModalDialog(winstr,"",sizestr);
      

  3.   

    fdsafdsa
    <script language=javascript>
    showModalDialog("http://www.chinanews.com.cn","","status:no;resizable:no;help:no;dialogHeight:220px;dialogWidth:450px;");</script>
      

  4.   

    showModalDialog方法
    详情清看
    http://www.csdn.net/Develop/read_article.asp?id=15113