SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the javascript to show when a page was last modified?

    Told you it would be easy

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <script language="JavaScript">
    document.write(document.lastModified);
    </script>


    That ought to work...going to test it right after posting this.

    EDIT: Yes, seems to work. You can stick that code (with the script tags around it, of course) anywhere on your page. It will produce something like this:

    Tue, 23 Jan 2001 14:36:02 GMT

    This can probably be modified if need be, but I'm not sure.

    <Edited by TWTCommish on 01-23-2001 at 01:47 PM>

  3. #3
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Chris!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •