Ciao,
io farei ogni tot una chiamata AJAX ad uno script PHP che restituisce un oggetto JSON con
un flag per l'esistenza del messaggio ed eventualmente anche il contenuto del messaggio.

Ciao