title: Want to show alert box for only 3 seconds
body: <p>I want to show alert box only for 3 seconds (Means it show &amp; hide automatically). I have search lot of in google but doesn't get answer. Any suggestion really appreciated.</p>
  
  <p>I have done with new window but still finding solution with alert box.  Chk My code :</p>
  
  <pre><code>function fn() {
      var w = window.open('', '', 'width=300,height=2px')
      w.document.write('Product has been added to your Order List !')
      w.focus()
      setTimeout(function () { w.close(); }, 2000);
  }
  </code></pre>