Cross-browser: detect blur event on window

后端 未结 6 2341
挽巷
挽巷 2021-02-08 03:24

I just read, I think all the thread that deals with this subject, and I can\'t find a real solution to my problem. I need to detect when the browser window loses its focus, i.e.

6条回答
  •  情歌与酒
    2021-02-08 03:53

    It appears that jQuery no longer supports these tests for FireFox:

    • jQuery bug ticket is here: http://bugs.jquery.com/ticket/13363
    • jQuery close/deprecation commit is here: https://github.com/jquery/jquery/pull/1423

    I am searching for a better way to support Firefox blur eventing, but until I find a better approach, this is a more current status relative to the original accepted answer.

提交回复
热议问题