<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 2</title>
<script>
function a(){
window.open("xxx.htm","","top=0");
}
</script>
</head>
<body>
<input type="button" name="123" onclick="return a();" value="click me"> 
</body>
</html>

解决方案 »

  1.   

    <script language="JavaScript">
    var meizz = window.open("about: <body bgcolor=#000000>","win","width=640");
        meizz.blur();
        self.focus();
        ontopIntervalHandle = meizz.setInterval("window.opener.meizz.focus();",10);
    </script>
      

  2.   

    楼上老兄说的只是让弹出的窗口永远在屏幕的最上端,而不是在多个窗口的最上层。
    用window.showModalDialog()和window.showModelessDialog()可以让弹出的窗口永远在最上层,但是在这样的弹出窗口里的链接,一点击就会又重新打开一个窗口。不知楼主对这个问题有什么好的解决方法没有?
      

  3.   

    不肯能做到SetWindowsPos 的TopMost模式吧
      

  4.   

    在ie6以上
    <body onBlur="this.focus();">
      

  5.   

    wangyime、xuzuning说得对,
    1.如果主窗口用不着接收消息,就用模态窗口;
    2.如果主窗口想接收消息,就用非模态窗口;
      

  6.   

    对于交互时弹出新的问题早有解决
    在<HEAD>标签中上加入
    <BASE Target="_parent"></BASE>

    <BASE Target="_self"></BASE>
      

  7.   

    以上仅适用于IE5.5以上IE5以下用<IFRAME>或<FRAME>框架来解决,具体方法请查一下吧!
      

  8.   

    to: meizz(梅花雨) ( ) 信誉:270 
    那我打开IE之外的程序,怎么实现