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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With