There is some page, it displays a window with messages. Is it possible in some way when a new message appears to notify the user when the windows are minimized ie, for example, the browser icon (ie) flashes on the taskbar? And the flashing is triggered when the focus is transmitted when the window is open. In the case of open tabs, nothing happens. How can you make him blink?
- oneadodson.com/notification.js ie9 can flash taskbar icon - zb '12
- I still a hundred years ago, I switched my favicon to show an alert in monitoring. - zb '
|
1 answer
Hardly, I personally have not seen such implementations, and I doubt very much that this is possible if the browser allowed you to control the system so deeply, it would be, sorry, a full 3.14 site. Can you imagine what opportunities virus writers would have? :) Fufufu, don't even dream about it :)
On the topic, you can try to display a message through alert()
, like then the browser window will blink in the taskbar. There are no other ideas.
- And what other alternative ways to attract the user's attention are there? What means can this be achieved? - Olga
- You can, for example, like this document.getElementsByTagName ('title') [0] .innerHTML = 'LOOK HERE'; and setInterval ( javascript.ru/setInterval ) to change the inscription with a delay - Alexander Moshnov
- Well, as an option, another proposed @fleg is also possible. And so, you can still use flash with sound, but for me it's so unnecessary. zyzh I will correct the last: not unnecessarily, but better so it is not necessary, this is a bad practice. :) - thunder
- flash with sound to attract attention? this is the worst. You sit in the evening, listen to music, work. And then some page wanted to "attract attention." You can catch a heart attack. Recently wrote about a man who left the computer and went to bed. The one at 3 o'clock in the morning decided to roll updates and upgrade. Restored the browser that opened the page where there was a video with monsters shouting. Diapers probably changed :) Want to attract a user? Use native applications, long-lived applications in the browser is not the place. - KoVadim
- Well, about the flash, I meant that this is bad. :) Thank you for your comment. Well, about native applications is also true, I did not mention them, since such a task was not set. Of the other options, I only see sending sms / mms / mail and all that. - thunder
|