SoFunction
Updated on 2025-02-28

Summary of the method of refreshing parent page in javascript

1. Use iframe and pop-up child page to refresh the parent page iframe

<script language=JavaScript> 
(); 
</script>

2. Pop up subpage

<script language=JavaScript> 
  (); 
</script>

3. The child window refreshes the parent window

<script language=JavaScript> 
  (); 
</script>

4. Refresh the window opened with the open() method

<script language=JavaScript> 
  =; 
</script>

5. Refresh the window opened with () method

<script language="javascript"> 
  ('Refresh'); 
</script>

6. Click on the layer to refresh the current page

var iframes= ('iframe');
for(var i=0;i&lt;;i++){
var src=iframes[i].;
( src);
if(("")!=-1){
( "refresh:"+src);
('iframe')[i].(true);
}
}
('my_iframe').(true);

The above is all the content of this article. I hope it will be helpful to everyone's study and I hope everyone will support me more.