showModalDialog 和open.window的不同
来源:互联网 发布:安知玉如意男主 编辑:程序博客网 时间:2024/06/05 20:54
<script LANGUAGE="JavaScript">
<!--
function openwin1() {
k=showModalDialog ("M_add.jsp", "newwindow", "dialogHeight:450px; dialogWidth:420px; toolbar:no; menubar:no; scrollbars:yes; resizable:no; location:no; status:no;left:100px;top:300px");
//document.all.query_keyword.value = k;
//写成一行
}
function openwin2() {
k=window.open("M_add.jsp", "newwindow", "height=450px; width=420px; toolbar:no; menubar:no; scrollbars:yes; resizable:no; location:no; status:no;left=100px;top=300px");
//document.all.query_keyword.value = k;
//写成一行
}
function aaa()
{
window.location="login.jsp";
}
//-->
</script>
<a href="login.jsp" onclick="javascript:openwin1()">增加1</a>
<a href="login.jsp" onclick="javascript:openwin2()">增加2</a>
今天偶然发现的一个小小的发现,首先点击 增加1 ,会弹出窗口,此时转向功能并不会执行, 当你把窗口关闭的时候,才执行转向。好象百度就有这种,点击 窗口关闭,父页面刷新了。
当点 增加2 ,会弹出窗口,同时执行转向功能。
所以,showModalDialog 如果做 增,删,改的话,并不要去写一个刷新父窗口的脚本。正因为showModalDialog 弹出的窗体要在 关闭的时候才去执行转向。所以在这里面你想做什么就做什么,如果加点ajax的技术 ,嘿嘿, 满好玩的。
如果用window.open 做 增,删,改的话,就要写一个 刷新父窗口的脚本。
- showModalDialog 和open.window的不同
- window.showModalDialog 与window.open传递参数的不同?
- window.showModalDialog 与window.open传递参数的不同?
- window.showModalDialog 与window.open传递参数的不同?
- window.showModalDialog 与window.open传递参数的不同?
- showModalDialog 和 window.open 的区别
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.open() 和 window.showModalDialog() 的返回值
- window.showModalDialog模式对话框 和 window.open的区别
- window.showModalDialog 和 window.open的区别以及用法
- window.showModalDialog模式对话框 和 window.open的区别
- window.showModalDialog和window.open的参数区别
- window.open()和window.showModalDialog()使用方法
- Window.Open() 和 window.showModalDialog()参数
- window.open和window.showModalDialog用法
- Window.Open() 和 window.showModalDialog()参数
- jbpm简介
- 关于select() 的补充啊!
- (转)Delphi回调函数及其使用
- 07年上半年度技术文章经典回顾
- Community Server 2.0中如何调试项目?我告诉你!
- showModalDialog 和open.window的不同
- Dealing with Adversity
- Ajax open 用法
- 爱情中的四个精致和残忍
- 为树节点(TreeNode)添加右键菜单
- 使用模板实现多态性
- Ajax - 基础教程第八章例子学习四
- 奔向成功的十个好习惯--希望能成为自己的警钟!
- 游戏中 ----三维空间中的 向量