Skip to content
Advertisement

How would you display the time using Javascript in html while html still is running and displaying other stuff

I am making a music player (just to play one song so i can learn more html) and i want it to display the time at the bottom and it seems the only way to do it is with Javascript. I got it to print the time, but it doesnt display any of the html code, only the time shows.

JavaScript
JavaScript
JavaScript

Advertisement

Answer

you are adding time to entire body, you should try this

JavaScript
Advertisement