alertBox()
Doesn't this look like an immediate function call?
Try passing the function (without executing it) instead:
setInterval(alertBox, 5000);
1.4m articles
1.4m replys
5 comments
57.0k users