日期:2014-05-17  浏览次数:20853 次

return confirm失效
<a   href= "ShowImg.asp?FilePath= <%=Rs( "PhotoPath ")%> "   target= "_blank "> 查看图片 </a>  

<a   href= "FsoDel.asp?FilePath= <%=Rs( "PhotoPath ")%> "   onClick= "return   confirm( '您确定要删除吗? '); "> 删除图片 </a>


别的页面return   confirm   都好用

不管   点   确定   取消     都执行
郁闷

------解决方案--------------------
<span onClick= "{if(confirm( '您确定要删除吗? ')){location.href= '?menu=del ';}} "> 删除 </span> 换成这样的形式看看能执行不
------解决方案--------------------
确认 <%=Rs( "PhotoPath ")%> 取到值了吗?
------解决方案--------------------
<a onClick= "if (confirm( '你确定要删除吗? ')){window.open( 'FsoDel.asp?FilePath= <%=Rs( "PhotoPath ")%> ', '_parent ')} "> 删除 </font> </a>