Video of the Day
Open one of your Web pages using Notepad, an HTML editor or any application that produces plain text. To assure that you retain a copy of your unedited site code, duplicate the file before you edit it.
Add the following code after the first "" tag in your HTML:
This creates an empty "div" block.
Add the following code before the closing "" tag in your HTML:
var divObject = document.getElementById("dateTimeValue"); divObject.innerHTML = formattedDateTime; }
Save the document and open it in your browser. The date and time appear in the location in which you placed the "div" tag. Reload the page to see the values change.