javascript interval

These answers are thorough and good; I just want to specifically fix yours. See the other answers for HOW/WHY.

setInterval(openAPage, 5000);

Note the lack of ().

Also, you’re missing the closing } on the openAPage() function.

Leave a Comment