方法1:

这个比较简单,一句话:

<a href="error.htm" onclick="javascript:return confirm('are you sure?');">跳转</a>

 

方法2:

触发:

 <img src="css/images/share.png" alt="共享" style="margin-right: 2px;" onclick="javascript:share('<%# Eval("id_File") %>')" />

函数

  if (window.confirm('你确定要共享这个文件吗?')) {
                //alert("确定");
                return true;
            } else {
                //alert("取消");
                return false;
            }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
猜你喜欢
  • 2021-06-02
  • 2021-11-11
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案