![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/12/2002, 12:01
|
![Avatar de Carlitos](http://static.forosdelweb.com/customavatars/avatar4305_1.gif) | Usuario no validado | | Fecha de Ingreso: mayo-2001 Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años, 9 meses Puntos: 25 | |
Utilizando setTimeout
Sintaxis:
setTimeout("nombreDeFuncion()",tiempoEnMilisegundo s)
Ejemplo.
<script>
function alerta()
{
alert("Hola mundo")
}
setTimeout("alerta()",5000)
</script>
Explicacion:
Se ejecutará la función alerta, pasados 5000 milisegundos (5 seg) |