- JS打开模式窗体
- 1.<html xmlns="http://www.w3.org/1999/xhtml">
- 2.<head runat="server">
- 3. <title></title>
- 4. <script type="text/javascript">
- 5. function openNewWeb() {
- 6. var winValue = window.showModalDialog("WebForm1.aspx", null, "dialogHeight=200px,dialogWidth=200px,center=1");
- 7. document.getElementById("result").innerText = winValue;
- 8.
- 9. }
- 10. </script>
- 11.
- 12.</head>
- 13.<body>
- 14. <form id="form1" runat="server">
- 15. <input id="Button1" type="button" value="button" οnclick="openNewWeb()" />
- 16. <div id="result">
- 17. </div>
- 18. </form>
- 19.</body>
- 20.</html>
JS打开模式窗体
最新推荐文章于 2021-05-28 10:37:22 发布