1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<script language="JavaScript">
var counter = 15 * 60;
setInterval(function(){
var timeString = Math.floor(counter/60) + "min " + (counter%60) + "sec";
document.getElementById("timecounter").innerText = timeString;
counter--;
if(counter < 0){
window.location.href = "login.html"; //redirection page de connexion
}
}, 1000);
</script>
<table align="center" width="97%" cellspacing="0" cellpadding="0" border="0" class="cadb">
<tbody>
ICICICI
<input type='hidden' id='timecounter' />
<span id="timecounter"></span> |