关于网页对话框的问题!
我做了一个非模式的网页对话框,然后打开网页弹出一个网页对话框,看父框还会留再它的下面,能不能再弹出对话框的同时吧父框关掉??在线等
window.showModalDialog(URL,null,'dialogWidth:550px;dialogHeight:400px;center:yes;status:no;dialogWidth:550px;dialogHeight:400px');
下面的代码就是你想要的效果:
this.Response.Write("<script language=javascript>window.open('DirEdit.aspx',null,'top=10,left= ,height=560,width=780,status=no,toolbar=no,menubar=no,location=no,resizable=yes ');window.opener = null;window.close();</script>"); 我这样试过了,不过弹出的窗口一闪而过,消失了,怎么回事?
我QQ:35560672
帮帮忙,急用 不是吧
上面的代码我都试过了,都可以了。
this.Response.Write("<script language=javascript>window.open('DirEdit.aspx',null,'top=10,left= ,height=560,width=780,status=no,toolbar=no,menubar=no,location=no,resizable=yes ');window.opener = null;window.close();</script>");
把这段代码写你的要跳转界面的按扭事件里面就可以了。
页:
[1]
