window.showModalDialog模式化打开对话框-->
在按下“X”关闭对话框时候;
怎样在客户端用jiava script截获网页卸载事件并且输入以下代码:
window.returnValue= "leave";
window.close();
以便在关闭后得到?
或者怎样将对话框“X”隐藏?
一样,可以写客户端搞本
write this function in window.onunload
t=window.showModalDialog(11.aspx,,)
if (t==Refresh)
{
document.location.reload(true);//refresh this page
}
in 11.aspx
window.returnValue=Refresh