Codice PHP:

win
=window.open('pagina.html','nomefinestra')

setTimeout("win.close();",3000//3 secondi