Código:
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>prueba</title>
</head><body>
<script type="text/javascript">
function valo(){
for(var i=0;i<10;i++){
setTimeout(document.getElementById("nombre").value = Math.random(),500);
}
}
</script>
<form method="post" action="prueba.html" name="prueba"><input id="nombre" name="nombre"> Nombre<br>
<input onclick="valo()" value="averiguar" type="button">
</form>
<br>
<br>
</body></html>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>prueba</title>
</head><body>
<script type="text/javascript">
function valo(){
for(var i=0;i<10;i++){
setTimeout(document.getElementById("nombre").value = Math.random(),500);
}
}
</script>
<form method="post" action="prueba.html" name="prueba"><input id="nombre" name="nombre"> Nombre<br>
<input onclick="valo()" value="averiguar" type="button">
</form>
<br>
<br>
</body></html>