alertBox()
Doesn't this look like an immediate function call?
Try passing the function (without executing it) instead:
setInterval(alertBox, 5000);
2.1m questions
2.1m answers
60 comments
56.9k users