auto close window.alert box es6 code example
Example: how to auto close alert box javascript
window.setTimeout('alert("Message goes here");window.close();', 5000);
window.setTimeout('alert("Message goes here");window.close();', 5000);