I have this code which is a pop up message. On this specific code how could I close the pop up after 5 seconds?
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=420,left = 580,top = 335');");
}