Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发可用性测试服务,并试图弄清楚如何在另一个域的页面上跟踪用户活动(例如 url、点击等)(无需通过 JS 或类似方式修改页面)。
有任何想法吗?
我认为您必须通过浏览器以某种方式修改页面才能完成您需要的大部分工作。也许是 Firefox 扩展,或者在 WebKit/Gecko 控件上连接事件(如果可用)。
或者,您可能能够通过一个<iframe>和一些 JavaScript 监控点击来破解某些东西。不过,我不确定如何将点击传递给 iframe。
<iframe>
但除此之外,我认为这是不可能的——而且可能是有充分理由的!这将是一个相当大的安全漏洞。