求一小段Javascript代码——打开了子窗口后,禁止操作父窗口 如题谢谢各位啦~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.showModalDialog("xxxxx.aspx", '', '');xxxxx.aspx是你要打开的页面的名称。 window.showModalDialog("filename.htm",var_name)//传递var_name变量在filename.htm中读取和设置var_name:alert(window.dialogArguments)//读取var_name变量window.dialogArguments="oyiboy"//设置var_name变量 是这样的,我对Window.showModalDialog不太了解,所以我用的是一小段弹出窗口的JS脚本,如下:<script language="javascript"> var popUpWin=0; function popUpWindow(URLStr, left, top, width, height) { if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+''); } </script>可现在我不知道怎么把Window.showModalDialog这个函数加进去了~我正在看Window.showModalDialog相关的帖子和资料~谢谢各位~~ 把open换成showModalDialog就可以了 question is soluted,now everyone can see here,wait you answerhttp://community.csdn.net/Expert/topic/4305/4305489.xml?temp=.0293085 我的页面中用了Session,再使用showModalDialog会有问题~在现有的情况下,有能解决问题的方法么??谢谢各位了~~ ^o^ ASP.NET 后台怎么添加消息框? 如何从SqlServer数据库中读取数据自动生成XML (200分)请大家讨论常用Java脚本(在线等) 有一个功能,需要实现柱状、饼状图,用什么控件好? 请帮忙看一段关于download的code 我有真正的ioffice.net2003 联系:QQ;406259030 请问Textbox数据绑定的一个问题 关于treeview ? 祝大家新年好,但明天居然还要加班,郁闷ing....散分!! SqlDataAdapter更新数据出错,我是参照MSDN上做的呀。 DataGrid里面的嵌套控件怎么调用后台函数? 关于一个学习的问题
xxxxx.aspx是你要打开的页面的名称。
在filename.htm中读取和设置var_name:
alert(window.dialogArguments)//读取var_name变量
window.dialogArguments="oyiboy"//设置var_name变量
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
</script>可现在我不知道怎么把Window.showModalDialog这个函数加进去了~我正在看Window.showModalDialog相关的帖子和资料~谢谢各位~~
http://community.csdn.net/Expert/topic/4305/4305489.xml?temp=.0293085