I need to refresh a page every 15 minutes, but with a set time (HH: 00 | HH: 15 | HH: 30 | HH: 45).
I tried to do this ...
<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>
Does setTimeout only cycle once?