I am using JavaScript with jQuery. I have the following script to alert hi every 30 seconds.
hi
$(document).ready( function() { alert(\"hi\");
You could use setTimeout instead and have the callback reschedule itself.
$(function() { sayHi(); function sayHi() { setTimeout(sayHi,30000); alert('hi'); } });