网上说用window.opener.location.reload(),怎么老在刷自己 aa.htm: <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="recibir" method="post" action=""> <input name="info" type="text" id="info"> <input type="submit" name="Submit" value="popup" onClick="javascript:window.open('bb.htm');"> </form> </body> </html> bb.htm <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <a href=# onclick="javascript:window.parent.location.reload();">refresh opener</a> <form name="enviar" method="post" action=""> <input name="dato" type="text" id="dato"> <input type="submit" name="Submit" value="OK" onClick="opener();"> </form> </body> </html> <script language="JavaScript"> <!-- function opener(){ //window.opener.location.reload(); window.parent.location.reload(); } //--> </Script>
刷新父窗口怎么老在刷自己