Lo que hay que hacer es guardar la referencia a la ventana emergente creada en una variable y luego se aplica el método 'focus()' sobre esta variable. Mira este ejemplo a ver si te sirve.
Código Javascript
:
Ver original<script>
var nuevoPopup;
function abrirPopup()
{
nuevoPopup= window.open("", "ventana1", "width= 200px, height= 200px");
}
function traerAlFrente(ventana)
{
ventana.focus();
}
</script>
<body>
<input type="button" value="abrir popup" onclick="abrirPopup()">
<br>
<input type="button" value="poner popup al frente" onclick="traerAlFrente(nuevoPopup)">
</body>