日期:2014-05-18  浏览次数:20475 次

关于脚本在IE的错误
<a   style= "cursor:hand   "onclick= "   JavaScript:   if(confirm( '你确定要退出系统吗? '))   {window.Open( 'logout.aspx ', '_top ')} ">
<b   > 退出管理 </b>
</a>
为什么在运行后,点击   ---退出管理   时,可以正常弹出----你确定要退出系统吗?
但点击确定的时候,却没反应,页面不会转到目标页面。我还发现IE的左下角出现一个黄色图标。双击该图标,出现提示脚本错误,提示     window   未定义。大家能说说是什么错误吗?共享下知识

------解决方案--------------------
<a style= "cursor:hand "onclick= "return confirm( '你确定要退出系统吗? ') " href= "logout.aspx " target= "_top ">
<b > 退出管理 </b>
</a>