I have a chat script on a webpage.
Now, when someone adds a message I want to notify other people who have the page/tab open but not active, to receive a notification of a new message.
For instance, I would like to change the page title from 'Chat' to 'New message - Chat'.
I think this is what 'Facebook Chat' does too.
But when I use: document.title = "New Message"; It only changes in the browser of the user that submitted the message. Not on the other browsers.
How can I achieve this?