23/06/2003, 13:50
|
| Moderadora | | Fecha de Ingreso: agosto-2001 Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 5 meses Puntos: 381 | |
Bueno, ahí te dejo un ejemplo a ver si te sirve
<script language="JavaScript">
function valor(v)
{
if (location.search.indexOf("?") == -1){
location.href += location.pathname + "?" + v}
}
Valor = unescape(location.search.substr(1))
if(Valor != ""){alert(Valor)}
</script>
</head>
<body>
<form name="form1" method="post" action="">
<input type="text" name="textfield">
<input type="button" name="Submit" value="Botón" onclick="valor(this.form.textfield.value)">
</form>
Me dices si te sirve o no (que nunca lo dices cuando te responden)
un saludo |