
show up, I used "demo" as the
function.
The code for the date in html is <p id="demo"></p> and in my JavaScript, its "document.getElementById ("demo").innerHTML=t;" The importance of adding <body onload="myFunction()"> and <p id="demo"></p> to our html document was to make it visible on the website. I can use this skill in the future to add the date/time to a lab or a project.
No comments:
Post a Comment