首先,新开的页面一定要使用window.open()方法,不能用超链接的target=_blank
然后,在新开页面中写上
<body onunload="opener.location.reload()">

解决方案 »

  1.   

    in a:
    <input id=aa><input type=button onclick='window.open("1.htm");'>
    in 1.htm:
    <input id=bb value="cc"><input type=button onclick="window.opener.document.all.aa.value=document.all.bb.value;window.close();">
    你说的显示根据条件得到的新内容只要把结果的url给window.opener就可以了
    就是window.opener.location.href = url
      

  2.   

    我用的window.showModalDialog()
    不是window.open().
      

  3.   

    first.htm<input type=text name=txt>
    <input type=button value=test onClick="test()"><script>
    function test() {
      window.showModalDialog("test.htm",window)
    }
    </script>
    test.htm
    <input type=text name=txt>
    <input type=button value=test onClick="test()"><script>
    function test() {
      var parentWin = window.dialogArguments;
      parentWin.document.all.txt.value = document.all.txt.value;
    }
    </script>