Some webmasters may notice this effect, and the new message will flash the title prompt. The following is a good example of how the new message will flash in the webpage title, if you are interested, you can see that some webmasters may notice this effect, that is, when we browse SNS social and community forums, we often see that new messages will flash the title prompt, so can we use this effect on our own website? How can we achieve the effect of new messages flashing in the webpage title? Xiaobian was lucky to see such code in a technical blog, based on the jquery framework.
In order to solve the problem that webpage effects cannot be displayed after running (for example, jQuery needs to be refreshed), a webpage demo is added for the script home.
The Code is as follows:
My JSP 'test. jsp 'starting page
See the effect of the webpage title!
The message disappears after 10 seconds.