SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: This is an easy one :)
-
Jan 23, 2001, 13:27 #1
- 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
-
Jan 23, 2001, 13:35 #2
- 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>
-
Jan 23, 2001, 14:51 #3
- 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