Puse este caso en PHP pero me indicaron que aqui seria mas idoneo.
Tengo una funcion en una pagina php que me abre una ventana emergente (un codigo de consulta whois) y al abrir, se me muestra con el fondo de la pagina normal de mi sitio. Necesito que se abra pero con fondo blanco o algo.
Comencemos poniendo el codigo (solo un trozo):
La pagina se llama whois.php y en ella se hace la consulta con un pequeño form, en ella misma se procesa la consulta y devuelve resultados. Luego, si el dominio esta ocupado (esta es la parte que me interesa arreglar) uno hace click en un enlace para ver de quien es y todo eso. Esa ventana que abre es la que sale con el fondo del sitio web.
Código PHP:
// Function to display an unavailable domain with additional links
function dispun($what,$where)
{
echo '<tr>
<td colspan="2"> </td>
<td align="center" nowrap class="nonavailable">'.$what.'</td>
<td nowrap align="center">
<a href="'.FILE_NAME.'?action=details&ddomain='.$what.'&server='.$where.'" onMouseOver="window.status=\''.STATUS_BAR_DETAILS.' '.$what.'\';return true" onMouseOut="window.status=\'\';return true" onClick="NewWindow(this.href,\'details\',\'620\',\'400\',\'yes\');return false;">
'.LINK_TAKEN_DETAILS.'</a></td>
<td nowrap align="center"><a href="http://www.'.$what.'" target="_blank">'.LINK_TAKEN_GOTO.'</a></td>
</tr>';
}
El codigo que sigue es la funcion que ejecuta la accion (eso creo):
Código PHP:
function pageheader()
{
echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset='.META_CHARSET.'">
<meta http-equiv="Content-Language" content="'.META_LANGUAGE.'">
<title>'.PAGE_TITLE_META.'</title>
<script type=text/javascript>
var win= null;
function NewWindow(mypage,myname,w,h,scroll)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ="height="+h+",";
settings +="width="+w+",";
settings +="top="+wint+",";
settings +="left="+winl+",";
settings +="scrollbars="+scroll+",";
settings +="resizable=yes";
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
</script>
</head>
<body>';
}
function pagefooter()
{
echo '</body></html>';
}
onClick="NewWindow(this.href,\'details\',\'620\',\ '400\',\'yes\');return false;"
He intentado cambiar this.href por una pagina html en blanco que cree para que fuese el "contenedor" de la respuesta pero no me funciona.
Alguien me ayuda?