• window.showModalDialog的使用


     

    父页面 

    <script type="text/javascript">
            function getUrlParam(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
                var r = window.location.search.substr(1).match(reg);
                if (r != null) return unescape(r[2]); return null;
            }
            function openView() {
                var tableId = getUrlParam("TableID");
                var result = window.showModalDialog(aaa.aspx?tableId=' + tableId, window, 'dialogHeight:500px;dialogWidth:420px;help:no;status:no;center:yes');//获取返回值
                var aaa = document.getElementById("TextBox_TableOrderID");
                aaa.value = result;
                document.getElementById("Button_Check").click();
            }
        </script>

    子页面

    Response.Write("<script>window.returnValue='" + sb1.ToString() + "|" + sb2.ToString() + "'</script>");//传递返回值
    Response.Write("<script>window.close();</script>");

  • 相关阅读:
    poj 2674 Linear world
    poj 3185 The Water Bowls
    The Largest Clique (uva11324)
    Proving Equivalences (LA 4287)
    强联通分量( HihoCoder 1185 )
    求点双联通分量(HihoCoder
    求桥,割点(HihoCoder
    欧拉回路
    uva10054
    表达式树(公共表达式消除 uva 12219)
  • 原文地址:https://www.cnblogs.com/tongdengquan/p/6090554.html
Copyright © 2020-2023  润新知