zoukankan      html  css  js  c++  java
  • asp.net 关闭子窗体 刷新主窗体


    主窗体
    ******************************************
    ******************************************

                //原窗口保留,以对话框形式打开新窗口:
                Response.Write("<script>window.open('Tree1_edit.aspx','child','width=300,height=280,left=200,top=200')</script>");

    ******************************************
    ******************************************

    子窗体
    ******************************************
    ******************************************

    <script language="JavaScript" type="text/javascript">
    <!--
    function refreshParent() {
    window.opener.location.href = window.opener.location.href;
    if (window.opener.progressWindow)
    {
    window.opener.progressWindow.close();
    }
    window.close();
    } //-->
    </script>

    ******************************************
    Response.Write("<script language=javascript>opener.location.href=opener.location.href;window.close();</script>");
    ******************************************
    ******************************************

  • 相关阅读:
    SpringBoot整合阿里云OSS
    UVALive
    HDU 5794 A Simple Chess dp+Lucas
    数论
    UVALive
    UVALive
    HDU 5792 World is Exploding 树状数组+枚举
    UVALive
    UVALive
    UVALive
  • 原文地址:https://www.cnblogs.com/hutie1980/p/4726677.html
Copyright © 2011-2022 走看看