I need to print a message every 5 minutes:
alert("que venham mais 5 minutos");
How do I do it?
I need to print a message every 5 minutes:
alert("que venham mais 5 minutos");
How do I do it?
I would advise you to do this in JavaScript. It would look something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery timer - Codigos Fontes</title>
<script type="text/javascript" src="js/jquery-1.9.1.min.js" ></script>
<script type="text/javascript">
$(window).load(function() {
setInterval( function(){
alert('Que venham mais 5 minutos');
}, 50000);
});
</script>
</head>
<body>
<h1>Utilizando jQuery com timer: setInterval</h1>
<p>Aguarde 5 minutos...</p>
</body>
</html>