大家帮下忙,一个很简单的问题?
用showModalDialog打开一个窗口,怎样做到当它关闭时而不去刷新父窗体呢?
(按右上角那个关闭按钮)
用这种方法为何不行呢?
function showForm(){
var filename = showModalDialog("upload_image_index.php", "", "dialogWidth:25em; dialogHeight:8em; scrollbar:1;status:0;help:0");
if(filename!="undefined"){
//其它代码
}
else
{
return;
}
}
按右上边那个关闭按钮不是返回"undefined"吗?为什么不行呢?