你试试下面的代码:
<input type=button value="刷新父窗口" onclick="opener.reload();">

解决方案 »

  1.   

    你试试下面的代码:
    <input type=button value="刷新父窗口" onclick="opener.reload();">
      

  2.   

    父窗口如下所示:
    parent.htm
    -------------
    <html>
    <head>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>Name</title>
    </head>
    <body>
    <form method="POST" action="--WEBBOT-SELF--">
      <p>Name:<input type="text" name="name" size="20"><br>
      Age:<input type="text" name="age" size="20"><input type="button" value="打开子窗口" name="B3" onclick="window.open('children.htm','test');"></p>
    </form>
    </body>
    </html>子窗口如下所示:
    children.htm
    ----------------
    <html>
    <head>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>Name</title>
    </head><body><form method="POST" action="--WEBBOT-SELF--">
      <p>
      Name:<input type="text" name="name" size="20"><br>
      Age:<input type="text" name="age" size="20">
      <input type="button" value="传给父窗口" name="B3" onclick="opener.document.all.name.value=document.all.name.value;opener.document.all.age.value=document.all.age.value;"></p>
    </form>
    </body>
    </html>
    你可以根据你的需要适当的调整。
      

  3.   

    a.php:
    <a href=# onclick="window.open('b.php','','');">open window</a>b.php:
    <form name=form1>
    <input name=xxx>
    <input type=button value=send onclick="opener.location='a.php?xxx='+this.form.xxx.value;self.close()">
    </form>
    将xxx的值以get方式传给了a.php