JS打开模式窗体
2011-07-27 21:35
246 查看
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" onclick="openNewWeb()" />
16. <div id="result">
17. </div>
18. </form>
19.</body>
20.</html>
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" onclick="openNewWeb()" />
16. <div id="result">
17. </div>
18. </form>
19.</body>
20.</html>
相关文章推荐
- 在打开有模式窗体后还能"显示"无模式窗体
- 打开指定大小的模式窗体
- 用JS打开windows下的几种窗体格式
- 模式窗体提交时不打开新的页面
- C# 单例模式和窗体的单例打开方法
- 打开showModalDialog模式窗体并提交,且不打开新的IE窗口
- js打开新窗体的方式总结
- JS的ShowModalDialog模式窗体传值
- C# 单例模式和窗体的单例打开方法
- Silverlight:在MVVM模式中打开子窗体(Child Window)
- JS的ShowModalDialog模式窗体传值
- js window.open 打开新窗体 参数设置
- 使用js打开和关闭窗体的几种方法
- js打开新的窗体不被浏览器阻止
- 利用单例模式解决WinForm中子窗体只允许打开一次的问题
- js 打开窗体的操作类
- iw14.0.50来了,终于可以直接在地址栏输入url打开iw功能页面了;可以自由使用EasyUI等js框架了;显示模式对话框也不再七绕八绕惹人烦了;
- 网页中常用的JS 检证功能及打开模式对话框
- 如何使用js直接打开窗体
- js 整站模式窗口打开