Forum Moderators: open
var minutes = today.getMinutes();
{
var minutes = '1' + minutes;
}
Example:
setTimeout("alert('boo')", 60000); That will show an alertbox after 60000 milliseconds (60 seconds).
Edit: getMinutes() works on a date object, which indeed needs to be defined first.
var today = new Date();
var minutes = today.getMinutes();
minutes should contain the minute portion of the current system time (30 over here).
[edited by: RonPK at 1:30 pm (utc) on Sep. 13, 2006]
I was working on the looping problem when you sent that to me. I realized I didn't send you my looping examples.
Do you know why the
setInterval("minute_iframe()", 60000);
wouldn't work without your looping added in? Just curious.
As a sidenote, I almost had it working as well using this:
var today = new Date();
var minutes = today.getMinutes();
except it only changed by minute on page reload.
Thanks a lot!