hello i am doing a simple countdown timer in html. i done everything like adding additional project filles, etc when i run the first page its running but when time=0 its not going to another page and alert is repeated unlimlited times.
<div id="1">
</div>
<script>
(function(count) {
setInterval(function() {
if( count === 0) {
phoneui.alert('YOU ARE REDIRECTED TO PAGE 2');
phoneui.gotoPage("m1-2",'NONE');
}
else {
document.getElementById('1').innerHTML = 'Count Down Time: ' + (count/1000);
count -= 1000;
}
}, 1000);
}(10000));
</script>
i am attaching my files.
Attachments:
You must be
logged in to view attached files.