1
I need to update a page every 15min, but with a set time (HH:00 | HH:15 | HH:30 | HH:45).
I tried to do that...
<script>
$(document).ready(function () {
// Handler for .ready() called.
window.setTimeout(function () {
var data = new Date();
var minute = data.getMinutes();
if(minute == 15 || minute == 30 || minute == 45 || minute == 0){
location.href = "NewFile.jsp";
}
}, 3000);
});
</script>
setTimeout only cycle once?
What you’ve tried to do?
– LeAndrade
I’m editing.
– Leandro Kojima
I do not know who had commented here ""Trade by setInterval", it worked! Thanks!
– Leandro Kojima