Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/07/2005, 16:57
nostromo_
 
Fecha de Ingreso: diciembre-2004
Ubicación: Iquique, Chile
Mensajes: 150
Antigüedad: 20 años, 3 meses
Puntos: 0
Holas;

Te digo como hacerlo, a mi me resultó perfecto, lo quieres se realiza de la siguiente manera:

formulario.html

Código:
<html>
<head>
<title></title>
<script>
var openwin;
function abrir()
{
	openwin = window.open("buscar.html","","width=120,height=150,resizable=no");
}
</script>
</head>
<body>
<center>
	<table border=0 cellspacing=0 cellpadding=0>
		<tr>
			<td>nombre :&nbsp;</td>
			<td><input type=text size=20 id=nombre></td>
		</tr>
		<tr><td height=10 colspan=2></td></tr>
		<tr>
			<td><input type=button value=Buscar onclick=abrir();></td>
		</tr>
	</table>
</center>
</body>
</html>
Ventana buscar.html:

Código:
<html>
<head>
<title></title>
<script>
function renviar()
{
	with(document)
	{
		var ind = getElementById('combo').selectedIndex;
		var texto = getElementById('combo').options[ind].text;
		var path = opener.document;
		if(ind > 0)
		{
			with(path)
			{
				getElementById('nombre').value = texto;
			}
		}
		else
		{
			alert("Seleccionar un Dato");
		}
	}
}
</script>
<head>
<body>
<center>
	<select id=combo onchange=renviar();>
		<option>----
		<option>ValorA
		<option>ValorB
		<option>ValorC
	</select>
</center>
</body>
</html>
Nos vemos.