Override browser "Find" feature

Posted by Trevor Burnham on Stack Overflow See other posts from Stack Overflow or by Trevor Burnham
Published on 2010-05-03T19:52:45Z Indexed on 2010/05/03 19:58 UTC
Read the original article Hit count: 288

Filed under:
|
|

I'm wondering whether it's possible to use JavaScript to intercept or prevent the user from using the browser's "Find" feature to find text on the page. (Trust me, I have a good reason!) I'm guessing the answer is "no," beyond the obvious intercepting Cmd/Ctrl+F.

A second-best solution would be to intercept the text highlighting that the browser performs during a Find. Is there any way to do this, in any browser?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about browsers