是否可以通过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.
更多推荐
发布评论