hear me out. suppose a page has to be reloaded every weekday at 9:30 am. the page is opened at 9 am. so at 9:15 am the page should automatically get reloaded without any user intervention. what can be done. any help is appreciated
function checkTime() {
var d = new Date(); // current time
var hours = d.getHours();
var mins = d.getMinutes();
if (hours >= 17 || hours <= 18) {
setInterval(() => {
location.reload();
}, 5000);
}
}