<SCRIPT LANGUAGE="JavaScript">
opener.location=opener.location.href
</script>请哪位高手帮帮忙!!!

解决方案 »

  1.   

    在打开的窗口中应该是可以的, 直接访问test.htm就没有opener对象了<input type="button" onclick="window.open('test.htm')">
    'test.htm'<SCRIPT LANGUAGE="JavaScript"> 
    window.onload=function(){
      opener.location=opener.location.href 
    }
    </script> 
      

  2.   

    我改为了
    <SCRIPT LANGUAGE="JavaScript"> 
    window.onload=function(){
      opener.location=opener.location.href 
    }
    </script> 
    但一打开窗体还是出错了:opener为空或不是对象
      

  3.   

    我是直接打开本页面的,没有用window.open
      

  4.   


    那肯定报错~·opener代表的子窗口~·
    只要用window.open才能用opener
      

  5.   

    我是做刷新的,想把dopost提示的对话框给去掉
      

  6.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <TITLE>通迅缴费</TITLE>
    <meta http-equiv=Content-Type content="text/html; charset=gbk">
    <SCRIPT LANGUAGE="JavaScript">
    window.onload=function(){
        opener.location=opener.location.href;
    }

    </SCRIPT>
    <BODY>
    <form action="recharge.do" method="post">

    缴费号码:
    <input type="text" name="telephone" id="telephone" >
    <span id="length" style="color: red;"></span>
    <br>
    <input id="area" name="area" type="text" style="color: red;" /> <br>
    缴费金额:
    <input id="payMoney" name="payMoney" type="text">
    <input type="button" value="查询">
    <br>
    缴费密码:
    <input id="accountPassword" name="accountPassword" type="password">
    <br>
    <input name="submit" type="submit" value="确定">
    &nbsp;
    <input name="reset" type="reset" value="重置"> <table id="viewPayment">
    <tr>
    <td>
    编号
    </td>
    <td>
    时间
    </td>
    <td>
    缴费号码
    </td> <td>
    金额
    </td> <td>
    代理帐号
    </td> <td>
    服务说明
    </td>
    <td>
    完成状态
    </td>
    </tr>

    <tr>
    <td>356</td>
    <td>2009-09-30 17:33:35.0</td>
    <td>15824139085</td>
    <td>100</td>
    <td>test</td>
    <td></td>
    <td>缴费成功</td>

    </tr>
    </table> </form>
    </BODY>
    </HTML>
      

  7.   

    我手动刷新的时候出现一个对话框,要求用dopost(信息保密所以用dopost) 但不出现那个提示框