
08/01/2012, 23:29
|
| | Fecha de Ingreso: enero-2012 Ubicación: Mexico
Mensajes: 5
Antigüedad: 13 años, 2 meses Puntos: 0 | |
Respuesta: Crear boton para enlazar a sitio web a ver si entendi, Seria algo asi?:
<body>
<script>
document.getElementById('enlace').onkeyup=function (){
document.getElementById('link').href = this.value + '.mipagina.com';
};
</script>
<form id="form1" name="form1" method="post" action="">
<label for="enlace">introduce tu codigo </label>
<input type="text" name="enlace" id="enlace" />
<button id="link">entrar</button>
</form>
</body>
No me da resultado, no manda a ningun lado :( |