27/04/2004, 14:26
|
| Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Podría ser:
<html>
<head>
<title>Untitled</title>
<script>
var valor1, valor2;
valores=location.href.split("?");
if(valores.length>1){
valor=valores[1].split("&");
for(a=0;a<valor.length;a++){
igualdad=valor[a].split("=");
eval(igualdad[0]+"='"+igualdad[1]+"'");
}
document.write("De antes de refrescar tenemos: "+valor1);
document.write("<br><br>De antes de refrescar tenemos: "+valor2+"<br><br>");
}
function recarga(valor1,valor2){
location.href=location.href+"?valor1="+valor1+"&va lor2="+valor2;
}
</script>
</head>
<body>
<a href="#" onclick="recarga('amigos',2345);return false">
Recargar</a>
</body>
</html>
¿o no?
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |