在实际的开发过程当中像window.showModalDialog弹出子窗体是非常常用的,今天写了一个DEMO
一。新建一个父窗体的页面ParentWeb.aspx
].toString();
                       // window.location.reload();  刷新父窗体
24window.showModalDialog用法            }
25window.showModalDialog用法            
26window.showModalDialog用法        }
27window.showModalDialog用法    </script>
28window.showModalDialog用法</head>
29window.showModalDialog用法<body>
30window.showModalDialog用法    <form id="frmParent" runat="server">
31window.showModalDialog用法    <div>
32window.showModalDialog用法        姓名:<input type="text" value="" id="txtName" /><br />
33window.showModalDialog用法        年龄:<input type="text" value="" id="txtAge" /><br />
34window.showModalDialog用法        <input id="btnSubmit" type="button"  value="Submit" onclick="return OpentChild();" />
35window.showModalDialog用法    </div>
36window.showModalDialog用法    </form>
37window.showModalDialog用法</body>
38window.showModalDialog用法</html>
39window.showModalDialog用法
二。新建一个子窗体ChildWeb.aspx

相关文章:

  • 2022-12-23
  • 2021-10-05
  • 2021-11-28
  • 2022-03-02
  • 2021-09-26
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2021-07-29
  • 2021-10-16
  • 2021-06-26
  • 2021-12-23
  • 2022-12-23
相关资源
相似解决方案