Zamknij alert po 5 sekundach JavaScript

setTimeout(allertFunction, 5000); // time in milliseconds
//close allert code
Snowzin