setTimeout(function(){
     document.getElementById("alarmmsg").innerHTML=msg;
     },3000);
Above code is displaying message but not going off screen. What could be the problem?
First display the message, then after 3 seconds delete it.
document.getElementById("alarmmsg").innerHTML = msg;
setTimeout(function(){
    document.getElementById("alarmmsg").innerHTML = '';
}, 3000);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With