Yes this is made in javascript, you can do that using setInterval function, look here for some examples http://www.evolt.org/article/Using_setInterval_to_Make_a_JavaScript_Listener/17/36035/