Re: Page Last Updated - Script?

by "Joseph Poplawski" <jopop(at)>

 Date:  Thu, 10 Feb 2000 12:12:05 -0500
 To:  "Rob Brosey" <rbrosey(at)>,
 References:  oneil
  todo: View Thread, Original

At the bottom of this message is a Javascript that will automatically
determine the date the page was last updated and display it.

I hope this helps you with what you are trying to do and will pacify those
who were questioning of your motives.

Jo Pop

----- Original Message -----
From: "Rob Brosey" <rbrosey(at)>
To: <hwg-languages(at)>
Sent: Thursday, February 10, 2000 7:39 AM
Subject: Page Last Updated - Script?

> To all that responded negatively,
> The reason why I want to  do such a thing is because I am updating
> parts of the site daily (as with 5 other sites) and if I can help it I
> to cut down on the time that is taking.  Just by having to go into a page
> edit it to change the date is a minor pain that I wanted to eliminate.
> is not meant to be fraudulent representation of a sites content but a time
> saving measure.
> I guess that some people just want to look for any reason to be pompous
> to
> try to act a little superior.  I'll bet you that a lot more people are
> this for the same reasons as I.
> I always thought a good techie/programmer was a person that always looked
> for ways to cut down on work.
> Rob Brosey

<!-- This shows the user the last date this page was modified -->
file://Modified by

function initArray()
  this.length = initArray.arguments.length
  for (var i = 0; i < this.length; i++)
  this[i+1] = initArray.arguments[i]

var DOWArray = new
var MOYArray = new
var LastModDate = new Date(document.lastModified);

document.write("This page was last updated on ");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
document.write(LastModDate.getDate(),", ",(LastModDate.getYear()+1900));

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA