y si la kieres en la pagina de respuesta, solo basta con ke pongas la funcion dentro del
<body onload='doIt()'>
<script type=text/javascript>
// this code will receive an error if the user
// clicks the "X" to close the pop up....
// otherwise it knows not to open it again, or
// that it needs to open it...
var _winObj;
function doIt() {
if (_winObj || _winObj != null) {
return;
}
_winName = "MyNewWindow";
_info = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=auto,resizable=yes,dependent,height=300,width=420,left=0,top=0";
urlLoc = "";
_winObj=window.open(urlLoc,_winName,_info);
_winObj.document.write('Esta es la nueva ventana.<BR>');
_winObj.document.write('<a href="javascript:opener._winObj=null;this.close()">Pulsa aquí para cerrar</a><BR>');
_winObj.document.write('<img src="pic1.gif" border=0 alt="Un dibujito :-D">');
}
</script><a href='javascript:doIt()'>Pulsa aquí para abrir una nueva ventana</a><BR><BR>