0
當我使用showModalDialog
關閉模態對話框時,如何將我的主頁重定向到另一個網頁?當ShowModalDialog關閉時重定向父表格
我這裏有我的關閉表單代碼:
function Msg()
{
parent.window.opener.location.href = 'MyRequirements.aspx';
window.close();
}
這裏是我打開的模態對話框代碼:
function Go()
{
var model= document.getElementById("cboModel").value;
var variant= document.getElementById("cboVariant").value;
var color = document.getElementById("cboColor").value;
var code = document.getElementById("txtCode").value;
window.showModalDialog("MesgeBox.aspx?model=" + model +
"&variant=" + variant + "&color=" + color + "&code=" + code +
"","","dialogHeight: 100px; dialogWidth: 80px; edge: Raised;help: No; resizable: No; status: No; center: Yes; scrollbars: No;")
}
的opener.location
不工作。
謝謝:)讚賞 – 2011-07-08 08:45:15