日期:2014-05-17  浏览次数:20366 次

showModalDialog 弹出窗口问题
C# code
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert(window.showModalDialog('http://www.baidu.com','','dialogWidth=400px;dialogHeight=300px;location:no;help:no;status:no;scroll:no;'))", true);



点击 X 关闭这个模式化窗口 后 



请问 怎么解决这个问题呢?

------解决方案--------------------
你应该


xx = window.showModalDialog('http://www.baidu.com','','dialogWidth=400px;dialogHeight=300px;location:no;help:no;status:no;scroll:no;')
if(xx)
{
alert(xx)
}
else
{}
------解决方案--------------------
window.showModalDialog('http://www.baidu.com','','dialogWidth=400px;dialogHeight=300px;location:no;help:no;status:no;scroll:no;')
未设置返回值时默认返回空 则为undefined