Simple? Ouch, I can't even understand how that works. Well, I do, but it just seems really complex. I would prefer to write out the variables for time...Quote:
Originally Posted by Twey
And then display them simply by assigning innerHTML, or innerText (doesn't work in Firefox) a value.Code:var date = new Date()
var hours = date.getHours()
var minutes = date.getMinutes()
Just my opinion though :)
Oh, and btw, what does "!==" mean?
