window.opener应该只对用window.open方式打开的页面才有用。
你可以直接用window.parent.frames.location="主页面url";的方法来刷新。
或者:
子页面中form定义成_parent的触发方式:
<form name="form1"  method="POST" action="***" target="_parent">
然后直接用window.location.replace(="主页面url");来刷新也可以。