我想打開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