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>");
    ******************************************
    ******************************************

  • 相关阅读:
    POJ 1680 Fork() Makes Trouble
    课堂改进意见
    梦断代码 读后感3
    梦断代码 读后感2
    找一问题
    软件评价——搜狗输入法
    《梦断代码》读后感1
    站立会议第十天
    站立会议第九天
    站立会议第八天
  • 原文地址:https://www.cnblogs.com/hutie1980/p/4726677.html
Copyright © 2011-2022 走看看