|
Place the Date on your page
|
|
|
| The part of the script that goes in the HEAD of your page creates two arrays or lists. These lists will be used by the code in the BODY of your page to convert the number returned by the getDay() and getMonth() methods to the correct name of the month and day. |
| The function getFullYear deals with a small difference in the method used by Netscape and MSIE to handle dates after 1999. |
| The code in the BODY of your page will use the document.write method to place the date information on your page. The arrays in the HEAD section are used to find the name of the day and month while the getDate method gives us the number of the day of the month. The getFullYear function supplies the correct year. |
|