0
How can i get the time using JavaScript and render it to a specific <p> element in the html
2 Answers
+ 1
Use date object
+ 1
You can doing it by using document.getElementById("id_name").innerHTML = d;
d here is Date object that you can declare as
var d = new Date();