让我的浏览器闪烁作为指标 [英] make my browser blink as indicator

查看:61
本文介绍了让我的浏览器闪烁作为指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的同事写了一个快速的mvc聊天应用程序,这样我们就可以在不离开办公桌的情况下聊聊工作内容。

My coworker wrote a quick mvc chat application so we can chat about work stuff without leaving our desks.

有哪些方法可以相互指示新消息?我的第一个想法是让浏览器标题栏闪烁。谁知道怎么做?

What are some ways to indicate to each other a new message has been posted? My first thought was make the browser title bar flash. Anyone know how?

推荐答案

无法让浏览器在javascript中闪烁。
一种可能性是将文档标题设置为空,然后使用 setTimeout()

It is not possible to make the browser blink in javascript. A possibility is to set the document title to empty an then write it again with through a period of time with setTimeout()

这篇关于让我的浏览器闪烁作为指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆