彈出的頁面

 怎樣在彈出頁面輸入數據後刷新該頁.

要注意的是打開窗口使用的是window.open();
而不是showModalDialog();
 
A.<script   language=javascript>  
  <!--  
  function   closewin()  
  {  
  window.opener.location.reload();  
  self.close();  
  }  
  //-->  
  </script>   
      
  B.刷新父窗體,也可這麼做  
  在彈出的窗體中<body   οnbefοreunlοad=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/"; 
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章