The HTML text and the text from JavaScript set the font separately because that seams to work with all browsers and all editors.
Netscape originally implemented getYear() to return the number of years since 1900. (Many books describe getYear() this way.) When a standard was created, it was to return the actual year. Internet Explorer 5, Netscape 6 and Mozilla return the actual year. Netscape 4 returns the number of years since 1900.
Last Updated: 7/3/2025, 4:22:50 AM
<p><font size=-1>Last Updated: </font>
<script language=JavaScript>
<!--
// Display the date
the file was last saved.
// If there is content
on the page updated by the server,
// the date displayed
may be the current time.
var saved = new
Date(document.lastModified);
document.write(saved.toLocaleString().fontsize(-1));
// -->
</script></p>
Copyright © 2025 by [your name here].
<p><font size=-1>Copyright ©
</font>
<script language=JavaScript>
<!--
// A little kludgy
but it works for Netscape & IE
var saved = new
Date(document.lastModified);
var year = saved.getYear();
if (year < 1900)
year += 1900;
year = year + " ";
document.write(year.fontsize(-1));
// -->
</script>
<font size=-1>by [your name here].</font></p>
Rick's home page
with index or
without index
Last Updated: $Date: 2002/08/23 06:27:21 $ GMT ($Revision: 1.6 $)