我想打开window.open
作为模式弹出。Window.open作为模式弹出?
var features = 'resizable= yes; status= no; scroll= no; help= no; center= yes;
width=460;height=140;menubar=no;directories=no;location=no;modal=yes';
window.open(href, 'name', features, false);
我可以使用Window.ShowModelDialog()
,但在我的子窗口中,我打电话给父javascript方法。 ShowModelDialog()不会发生这种情况。
function CallParentScript(weburl) {
alert(weburl);
if (weburl != null) {
var url = weburl;
window.opener.SelectUserImageCallback(url);
window.close();
return false;
}
}
如果我使用window.open()
。我可以打电话给家长JavaScript。但窗口不是模态的。
如何解决这个问题?我可以在儿童弹出窗口中写下一些东西来始终顶部?
不能相信这家伙没有至少给你一个了投票所有的工作! – 2011-09-26 14:48:51