读书人

return confirm失效,该如何解决

发布时间: 2012-03-22 17:43:57 作者: rapoo

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>

读书人网 >ASP

热点推荐