Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/05/2014, 21:53
Avatar de xlos_mas_pro
xlos_mas_pro
 
Fecha de Ingreso: mayo-2011
Ubicación: Santiago
Mensajes: 359
Antigüedad: 13 años
Puntos: 11
Respuesta: INPUT ingresa un (valor) ---> genere un link sitio.com/(valor)

Te dare un ejemplo con el framework de jquery


Código Javascript:
Ver original
  1. <script type="text/javascript">
  2.     $(function(){
  3.  
  4.         $("#boton").click(function(){
  5.  
  6.                 var valor = $('#input').val();
  7.  
  8.                 $("body").append("<a href='http://sitio.com/"+valor+"'>Mi enalace</a>");
  9.  
  10.  
  11.  
  12.         });
  13.  
  14.  
  15.  
  16.     });
  17.  
  18. </script>


Código HTML:
Ver original
  1. <input type="text" id="input">
  2. <input type="button" value="enviar" id="boton">
  3. </form>