zoukankan      html  css  js  c++  java
  • 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>");

  • 相关阅读:
    Day3-B-Round Marriage CodeForces-981F
    Day3-A-Problem H. Monster Hunter HDU6326
    Day3-G
    Day3-I-Squares POJ2002
    Day3-M-Cable master POJ1064
    Day3-N
    Day3-O-Median POJ3579
    Day3-P
    Day3-L-Cup HDU2289
    LeetCode "Majority Element"
  • 原文地址:https://www.cnblogs.com/tongdengquan/p/6090554.html
Copyright © 2011-2022 走看看