Listen for Events from Browser “Find” Window in JavaScript

前端 未结 3 534
鱼传尺愫
鱼传尺愫 2020-12-21 03:41

Is there a way to listen for typing into the browser\'s \"find\" window in JavaScript?

\"thi

3条回答
  •  醉酒成梦
    2020-12-21 04:27

    Hardly. Even if it were possible through some loophole to listen to the browser's built-in "find" function, it would be a privacy issue and get closed sooner or later. I'm quite sure you won't be able to listen to the keystrokes either, as they take place outside the page's focus.

提交回复
热议问题