R-/ Abre todas tus ventanas usando la función abreVentana()
Pega este script en alguna parte entre <head> y </head>
Código:
Para abrir las ventanas (ejemplo para un link)<script language="JavaScript">
//cerrar todas las ventanas. Script por tunait!
//http://javascript.tunait.com/
//tunait@yahoo.com
var cont = 0
function abreVentana(pagina)
{
cont++
eval('ventana'+ cont + "=window.open(pagina,'ventana'+cont,'')")
}
function cerrar()
{
for(m=1;m<=cont;m++)
{
if(eval('ventana' + m))
{
eval('ventana' + m + ".close()")
}
}
cont=0
}
</script>
<a href="tuPagina.html" onclick="abreVentana('tuPagina.html');return false"> enlace </a>
Finalmente al tag de body...
<body onunload="cerrar()">
Ver ejemplo











