Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/12/2005, 14:43
angsanchez
 
Fecha de Ingreso: octubre-2004
Ubicación: España
Mensajes: 894
Antigüedad: 19 años, 6 meses
Puntos: 3
Hola, urgido.
Crea una página que tenga:
Código HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function contrae() 
{ 	document.body.rows = '*,0' 
}
function expande() 
{	document.body.rows = '*,300'
} 
</script>
</head>
<frameset rows="*,0">
  <frame src="pagina.htm" name="principal">
  <frame src="blanco.htm" name="previsual">
</frameset>
</html> 
blanco.htm debe ser una página en blanco.

pagina.htm tendrá:

Código HTML:
<p>Google 
<input type="button" value="Vista previa" onClick="top.previsual.location.href='http://www.google.com'; top.expande(); document.getElementById('btnCerrar').style.visibility='visible'"> 
<input type="button" value="Cerrar" id="btnCerrar" style="visibility:hidden;" onClick="top.contrae(); this.style.visibility='hidden'">
</p> 
__________________
Angel :cool: