關於彈出層(iframe)時刷新頁面的js

[javascript] view plaincopyprint?
  1. iframe彈出子頁面刷新父頁面iframe    
  2. parent.location.reload();  
[javascript] view plaincopyprint?
  1. 彈出子頁面刷新     
  2. window.opener.location.reload();  
[javascript] view plaincopyprint?
  1. 子窗口刷新父窗口      
  2. self.window.opener.locaction.reload();  
[javascript] view plaincopyprint?
  1. 刷新一open()方法打開的窗口      
  2. window.opener.location.href = window.opener.location.href  
[javascript] view plaincopyprint?
  1. 刷新以winodw.showModelDialog()方法打開的窗口      
  2. window.parent.dialogArguments.document.execCommand('Refresh');  
  3. 或Response.Write("<script>window.location.href = window.location.href</script>");  
[javascript] view plaincopyprint?
  1. 刷新本頁  
  2. Response.Write("<script>window.location.href=window.location.href; </script>");  
[javascript] view plaincopyprint?
  1. 刷新父頁和本頁面:  
  2. Response.Write("  
  3.     <script>alert('提交成功!');window.location.href=window.location.href;window.opener.location=window.opener.location;</script>  
  4. ");  
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章