弹出的页面

来源:互联网 发布:淘宝网模特吕瑶照片 编辑:程序博客网 时间:2024/05/21 20:24

 怎样在弹出页面输入数据后刷新该页.

要注意的是打开窗口使用的是window.open();
而不是showModalDialog();
 
A.<script   language=javascript>  
  <!--  
  function   closewin()  
  {  
  window.opener.location.reload();  
  self.close();  
  }  
  //-->  
  </script>   
      
  B.刷新父窗体,也可这么做  
  在弹出的窗体中<body   onbeforeunload=opener.location.reload(true)>   
    
 C.  
  <script   language="javascript">  
        function   unload(){  
            window.opener.location.href='主页面url';  
  }  
  </script>  
  <body   onUnload="unload()">  
  </body>   
 
刷新iFrame
window.parent.document.getElementById('iframeName').contentWindow.location = node.Target;
document.all.iframeMain.contentWindow.location="http://www.bokee.com/"; 
 
原创粉丝点击