You can use various methods for this:
- Websockets
 - AJAX Long Term Survey
 - page timers
 - floating frames
 
Each has its own reservations and opportunities.
If you are interested in real-time application capabilities, you can take a look at socket.io , which is a great abstraction library for all of these technologies, so it will use the one that is best supported in your browser.
tkone  source share