Refresh parent window when the pop-up window is closed

后端 未结 4 1878
梦如初夏
梦如初夏 2020-12-14 12:31

Is there any way I can refresh the parent window when a popup window is closed without adding any javascript code to the popup window?

I have a page parent.php on wh

4条回答
  •  猫巷女王i
    2020-12-14 12:53

    I'm sure you can just add this to parent.php:

    var myPop = "pop up window selector"
    myPop.onunload = function(){ 
      location.reload(); 
    }; 
    

提交回复
热议问题