Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call a javascript function at a specific time of day

setInterval(()=>{
let now = new Date();
//86400000 represents 10 hours in milliseconds Change it as you like
if(now.getTime() == 86400000 ){
  //your code
}
}, 1);
 
PREVIOUS NEXT
Tagged: #call #javascript #function #specific #time #day
ADD COMMENT
Topic
Name
8+8 =