How to make the window flashes?

I am working on chats. When there’s reply how do I flash the window? But I don’t want it to popup, just flashes?

Appreciate for any help.

The only way I know of is to show something like an alert on the page.

Another option is to edit the title of the window, but that might take more work.