I have built a working chat aplication, and I want to know if their is anyway to add an event listener or anything like that so that my chat list updates only when a new message has been sent to the database, instead of adding a manual refresh button, or pinging the database a million times with a refresh timer. Is their any java i could add on page load event or should i use an automatic script.