【问题标题】:Adding href in a return confirm在返回确认中添加 href
【发布时间】:2020-08-22 21:50:55
【问题描述】:

尝试在退货确认中添加链接

<a onclick="return confirm('Before downloading the App please make sure that you have read our polices');">[...]

最后的政策应该是一个超链接。

【问题讨论】:

    标签: javascript html popup href


    【解决方案1】:

    很遗憾,您只能将纯文本添加到原生 javascript 确认函数中。

    您可能想要使用 jquery 插件或类似的东西,它使您能够拥有自定义对话框窗口。

    jQuery 用户界面:https://jqueryui.com/dialog/#modal-confirmation

    或推特引导:https://getbootstrap.com/docs/4.0/components/modal/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-14
      • 1970-01-01
      相关资源
      最近更新 更多