win server 2008 IE7 confirm失效
在win server 2008环境中,用IE7浏览网页,confirm失效
代码如下:
if(confirm("Are you sure to logout? ")==true)
{
window.location.href="/Logout.aspx";
return true;
}
return false;
代码估计没问题,请各位大侠帮帮忙?
------解决方案--------------------
<a id="Logout" href="#" style="cursor:pointer" onclick="logout()">Logout</a>
funtion logout()
{
if(confirm("Are you sure to logout? ")) location.href="/Logout.aspx";
}