Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/06/2012, 17:12
CeKiT
 
Fecha de Ingreso: mayo-2012
Ubicación: Mar del Plata
Mensajes: 157
Antigüedad: 11 años, 11 meses
Puntos: 0
Respuesta: Enviar formulario cada 5 segundos

Cita:
Iniciado por emprear Ver Mensaje
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <script type="text/javascript">
  7. //<![CDATA[
  8. function mensaje(){
  9. alert('Hola');
  10. }
  11. window.onload = setInterval('mensaje()',5000);
  12. //]]>
  13. </head>
  14.  
  15. </body>
  16. </html>

con setInterval() el ciclo se repite, con setTimeout(), espera la cantidad de milisegundos indicados, ejecuta la función pero no la vuelve a repetir

Saludos
Gracias BRO +Karma