关于弹出层(iframe)时刷新页面的js

    xiaoxiao2023-10-01  170

    https://blog.csdn.net/arui_email/article/details/8490064

     

    [javascript] view plain copy

    iframe弹出子页面刷新父页面iframe    parent.location.reload();  

    [javascript] view plain copy

    弹出子页面刷新     window.opener.location.reload();  

    [javascript] view plain copy

    子窗口刷新父窗口      self.window.opener.locaction.reload();  

    [javascript] view plain copy

    刷新一open()方法打开的窗口      window.opener.location.href = window.opener.location.href  

    [javascript] view plain copy

    刷新以winodw.showModelDialog()方法打开的窗口      window.parent.dialogArguments.document.execCommand('Refresh');  或Response.Write("<script>window.location.href = window.location.href</script>");  

    [javascript] view plain copy

    刷新本页  Response.Write("<script>window.location.href=window.location.href; </script>");  

    [javascript] view plain copy

    刷新父页和本页面:  Response.Write("      <script>alert('提交成功!');window.location.href=window.location.href;window.opener.location=window.opener.location;</script>  ");  

    转自:https://blog.csdn.net/y13156556538/article/details/80237441

    最新回复(0)