Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/03/2007, 01:33
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 5 meses
Puntos: 61
Re: Controlar Ventana Desde Una Popup

Perdona korg, pensaba que no eras tan novato. Pepe sería el campo de texto de la ventana madre. Un ejemplo sería el siguiente:

ventana madre:
Código:
<html>
<head>
</head>
<body>
<input type="button" value="abrir ventana hija" onclick = "ventana = window.open('ventanita.html' , 'ventana' , 'height=300,width=500')">

<input type="text" name="pepe" id="pepe">
</body>
</html>
Y la página ventanita.html:
Código:
<html>
<head>
</head>
<body>
<a href = "http://www.forosdelweb.com" onclick = "opener.document.getElementById('pepe').value = this.innerHTML">
Tarari </a>
</body>
</html>
Espero que te sirva.
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.