title: How to display message for 3 seconds in javascript
body: <pre><code>setTimeout(function(){
       document.getElementById("alarmmsg").innerHTML=msg;
       },3000);
  </code></pre>
  
  <p>Above code is displaying message but not going off screen. What could be the problem?</p>