Here’s a really simple bit of code:
In this code, document is the object. write is the method of this object. Let’s have a look at some of the other methods that the document object possesses.
You can always include the last update date on your page by using the following code:
All you need to do here is use the lastModified property of the document. Notice that we used + to put together This page created by John N. Last update: and document.lastModified.
Lets try playing around with bgColor and fgColor:
<script> document.bgColor="black" document.fgColor="#336699" </script>
Next up: Message Boxes