首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

showModalDialog 弹出窗口有关问题

2012-06-13 
showModalDialog 弹出窗口问题C# codePage.ClientScript.RegisterStartupScript(this.GetType(), , ale

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

热点排行
Bad Request.