I had wanted it as a dynamic clock, so it updates automatically with the time.also, I like assigning my own variables. if I'm going to copy and paste it, I might as well not use the script anyway (that's why I learned JavaScript) and if I have to type out currentHours I might as well just type Date.getHours every time.only a bit longer.

Using your own variables is a good practice. Also, use descriptive variables (as you apparently are doing). I wasn't suggesting you take the code I posted, but just hoped that it showed you the correct way.

If you went to the side you'd have seen that the clock automatically updates like you're wanting. Hope everything is working now.

the site says you need to add a setInterval() function in the body tag to update it. I prefer to add a setTimeout() function in my function.I looked through all the codes you had posted, and none of them contained anything that would update it.I did get it to work, though.

I did check the site, just missed that link...I have another question. does the setTimeout function work off the computer's clock? I mean, if I would set a timeout of 60000 (1 minute) would it start exactly 1 minute after the page loads, or would it sync with the computer clock, so the event triggered by the timeout would coincide perfectly with the user's computer's clock?