开发者

Change inactive page 'Title'

开发者 https://www.devze.com 2023-01-21 23:49 出处:网络
I influenced from StackOverflow Chat. Here when the page is inactive then number of the new incoming chat messages are displayed in the Page title. When the page is activated the this number is disapp

I influenced from StackOverflow Chat.

Here when the page is inactive then number of the new incoming chat messages are displayed in the Page title. When the page is activated the this number is disappeared. How can I implement this concept in my application? I also w开发者_Go百科ant to highlight that window.


detecting when it goes inactive can be done with 'window.onblur' (the onblur event)

detecting when it goes active again can be done with 'window.onfocus' (the onfocus event)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号