![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/03/2006, 16:48
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Un poco depurado:
<html>
<head>
<title>Untitled</title>
<script>
a=0;b=0;c=0;
function inicio(){
setInterval('a+=1;b=parseInt(a/60);c=a%60;document.forms[0][0].value=b+":"+c',1000);
setTimeout('document.forms[0].submit()',600000);
}
</script>
</head>
<body onload="inicio()">
<form action="javascript:alert('Lo has hecho en '+document.forms[0]['tiempo'].value+' segundos');">
<input size="5" type="text" readonly="readonly" name="tiempo" value="0" /><br />
<br />
[resto del formulario]
<br />
<br />
<input type="submit" value="Enviar Datos" />
</form>
</body>
</html>
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |