If you want to pop up an alert every 5 seconds then you can use the following code:
In this case the function is called inside quotes. This prevents the function from executing immediately rather than at the set interval. The function name is sent as a string parameter to the
setInterval() method where it is then called at the correct time-lapse.