Hello.
I want to display the date and time on the page. For this, I started by doing the little test to display a countdown:
var tempo=60;
function session(time) {
time=this.tempo;
if (this.tempo>0) {
tempo--;
document.write(tempo);
}
}
function pegaSession() {
setInterval(session, 10000);
}
session(tempo);
I have not dealt with the time yet, as I want to show it decreasing, after I solve this detail, I work with the parseInt and ParseFloat () function.