2
Example:
var horaAtual = new Date();
var horaInicio = new Date("Fri Apr 01 2016 23:30:00");
//Quando(horaAtual == horaInicio)
//execute algo...
I want a function to be executed when it reaches a certain time in my code, without the user having to update the page.
How can I do that?
Hello, @bigown I tried to do so : https://codeshare.io/LQUun . But once I refresh the page, Alert is already displayed.... What could be?
– Naldson
I had forgotten to take the current time.
– Maniero