<script type="text/javascript">
var run;
function sa_refresh()
{
var dashboardButton = document.getElementById("db_ref_btn");
dashboardButton.click()
}
setTimeout(sa_refresh, 10000); //Runs the Refresh function every 5 minutes using Milliseconds (1minute = 60000)
run = setInterval(sa_refresh,10000);
</script>
***********************************************************************************
--------------------------------------------------------------------------------------------------------
So the requirement here is to make the refresh to schedule only for 5 times in a day.
I have thought changing the Interval of time such that there it happens max for 5-6 times a day like every 4 hours which is 6*4= 24 hours. Is there any alternative way to do so.