<html>
<head>
<title></title>
<script Language="JavaScript"><!--
window.open("sub.html","menu","width=160,height=400");
// --></script>
</head>
<body>
让这个子窗口永远在父窗口的上面
</body>
</html>
<html>
<head>
<title>menu</title>
</head>
<body onBlur="focus()">
■menu<br>
<hr>
 总是在上面<br>
<hr>
<ul>
<li>JavaScript 1.0
<li>JavaScript 1.1
<li>JavaScript 1.2
<li>JavaScript 1.3
<li>JavaScript 1.5
</ul>
</body>
</html>

解决方案 »

  1.   

    window.showModalDialog('abc.htm', null, 'dialogWidth=450px;dialogHeight=300px;center:1;scroll:0;help:0; status:0')
      

  2.   

    window.showModalDialog(sURL [, vArguments] [, sFeatures])sUrl指定和window.open中的url参数一样就可以
      

  3.   

    还有,我新开的这个窗口上的一些onclick事件等怎么不能执行呀?
      

  4.   

    在子窗体<body>中如下写:
    <body onblur="window.focus();">
      

  5.   

    在子窗口中试试 window.opener.function() 调用方法,应该是可以的