hi all,
i'm developing an application were the time to view a certain page is limited. i also want to alert the user when he has 10 more minutes. i'm using this script but it doesn't work well. can anyone help me to check whats wrong and a tip on how to include the alert?:
thanks guys!
i'm developing an application were the time to view a certain page is limited. i also want to alert the user when he has 10 more minutes. i'm using this script but it doesn't work well. can anyone help me to check whats wrong and a tip on how to include the alert?:
Code:
var countdown = "30"
function onclick() {
if (countdown > 0) {
countdown-- }
else {
document.location="Direction.aspx"
}
window.status=countdown + " minutes left to finish this Paper."
setTimeout('doCount()',60000)
}
onclick()
Comment