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