|    
			
				21/01/2003, 05:23
			
			
			  | 
  |   |  | Moderador extraterrestre |  |  Fecha de Ingreso: diciembre-2001 Ubicación: Madrid 
						Mensajes: 6.987
					 Antigüedad: 23 años, 10 meses Puntos: 61 |  | 
  |  Hola Ugho!!
 
 Perdona la tardanza, pero somos como la Guardia Civil, aunque lleguemos tarde... llegamos!!
 
 A ver... dime si esto te sirve:
 
 ----------------madre.html--------------------
 <html>
 <head>
 <title>Untitled</title>
 </head>
 
 <body>
 
 <script language="JavaScript">
 ventana1=window.open('ventana1.html', 'ventana1', 'width=300,height=300,')
 </script>
 
 </body>
 </html>
 -----------------------------------------------------------
 ----------------ventana1.html-------------------------
 <html>
 <head>
 <title>Untitled</title>
 </head>
 
 <body bgcolor="navy" text="white">
 
 <h1 id="texto">HOLA HOLA</h1>
 
 <script language="JavaScript">
 ventana2=window.open('ventana2.html', 'ventana2', 'width=200,height=60,')
 ventana2.moveTo(310,0);
 </script>
 
 </body>
 </html>
 -------------------------------------------------------------------------
 ----------------------ventana2.html----------------------------------
 <html>
 <head>
 <title>Untitled</title>
 <script language="Javascript">
 <!--
 function anteponer(pepe){
 if(pepe){http.innerText="http://";mas="http://"}
 else{mas="";http.innerText="";}
 }
 function cambio(textito){
 if (document.formulario.ventana.checked){
 opener.location.href=mas+textito;
 }
 else{
 opener.document.getElementById('texto').innerHTML=textit  o;
 }
 }
 //-->
 </script>
 </head>
 
 <body bgcolor="red" text="white">
 
 
 <form name=formulario>
 <font id="http"></font><input name="mensaje" type="text" value="">
 <input type="button" value="mandar" onclick="cambio(document.formulario.mensaje.value)  ">
 <br>
 <input onclick="anteponer(this.checked)" type="checkbox" name="ventana" value="check me"> Dirección de Internet?
 </form>
 </body>
 </html>
 -------------------------------------------------------------------------
 
 
 cuando una ventana hija se refiere a la madre se debe hacer poniendo opener. Así, en vez de window o del nombre de la ventana:
 
 opener.location.href="tralara.html"
 
 en vez de
 
 ventana1.location.href="tralara.html"
 
 Dime si me he explicado bien.
 
 
 
 
				__________________Cómo escribir 
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.   Última edición por KarlanKas; 21/01/2003 a las 05:27
     |