Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/08/2011, 16:50
Avatar de skiper0125
skiper0125
 
Fecha de Ingreso: octubre-2010
Ubicación: $this->Mexico('Toluca');
Mensajes: 1.127
Antigüedad: 13 años, 7 meses
Puntos: 511
Respuesta: Iframe + botón + caja de texto + links

Cita:
Iniciado por neptuno335 Ver Mensaje
¿No existe algo para acceder al valor de la caja de texto así como target.location.href=Nombre.value?
claro que existe pero no sabia que no ocupabas php

aqui te dejo el ejemplo

Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sin título</title>
  6. </head>
  7. <script language="javascript" type="text/javascript">
  8.     function valida(){
  9.         var url=document.getElementById("pag").value;
  10.         var tu_frame = document.getElementById("ventana");
  11.         tu_frame.src = "http://"+url;
  12.     }
  13. </script>
  14. <body>
  15. <form id="form1" name="form1" method="post" >
  16.   direccion
  17.   <label>
  18.     <input type="text" name="pag" id="pag" />
  19.   </label>
  20.   <label>
  21.     <input  type="button" name="button" id="button" value="Enviar" onclick="javascript:valida()" />
  22.   </label>
  23. </form>
  24. <br />
  25. <iframe width="100%" height="500" name="ventana" id="ventana" src=""></iframe>
  26.  
  27. </body>
  28. </html>

Saludos
__________________
Recuerda que estamos aquí para orientarte, y no para hacer tu trabajo.
Si mi aporte fue de ayuda, recuerda que agradecer no cuesta nada +1

Skiper0125