跟踪JavaScript使用Ctrl + F?(Tracking the use of Ctrl + F by JavaScript?)

编程入门 行业动态 更新时间:2024-10-24 21:31:18
跟踪JavaScript使用Ctrl + F?(Tracking the use of Ctrl + F by JavaScript?)

是否可以通过JavaScript中的Ctrl + F了解我的用户在我的网页上搜索的内容? 因此,当用户使用Ctrl + F搜索某些内容时,JavaScript可以捕获此操作(以及搜索短语)并将其发送回服务器。

可能? 怎么样?

Is it possible to know what my users are searching for on my web pages by Ctrl+F in JavaScript? So when a user uses Ctrl+F to search for something, JavaScript can capture this action (and the search phrase) and send it back to the server.

Possible? How?

最满意答案

不,不可能。 在某些浏览器上,您可以捕获组合键CTRL+F ,但您无法监视用户搜索的内容。 在其他浏览器上,你根本无法捕获CTRL+F

如果有任何安慰,可能存在IE6上可能存在的安全漏洞。

Nope, not possible. On some browsers you can catch the key combination Ctrl+F, but you can't spy on what the user searched for. On other browsers you can't catch Ctrl+F at all.

If it's any consolation, there's probably a security flaw you can use on IE6.

更多推荐

本文发布于:2023-08-02 23:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1382472.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:JavaScript   Ctrl   Tracking

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!