[Solved] If, Else statement in Javascript not working. Is what I am doing even possible?


Your code stops working because of a syntax error in

SetTimeout function(){

Correct it to

setTimeout(function() {...}, 5000);

Btw. getElementById() does not need the # hash before the id string. It even won’t work with the #

4

solved If, Else statement in Javascript not working. Is what I am doing even possible?