【问题标题】:I want to create an event which will Fire when someone clicks on the IFrame launcher on the bottom right of my page我想创建一个事件,当有人单击我页面右下角的 IFrame 启动器时将触发该事件
【发布时间】:2018-03-08 12:55:48
【问题描述】:

我想创建一个触发器,当有人点击页面右下角的 IFrame 启动器时会触发该触发器。该启动器不会带到另一个网站,它只会打开一个容器并要求 SignUp 东西。我不想做跨域跟踪。只是当有人点击该启动器时应该触发一个标签。有可能吗?

【问题讨论】:

  • 查看事件监听器
  • 查看 addEventListener()

标签: javascript google-analytics google-tag-manager


【解决方案1】:

使用 jquery

$("#id").click(function() {
    // do something here
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-07
    • 1970-01-01
    • 2018-02-03
    • 2023-03-16
    • 2014-08-08
    相关资源
    最近更新 更多