Web Hosting Talk







View Full Version : cool Javascript


Sharewareisland
08-27-2006, 06:34 PM
cool Javascript that can tell u the last modied time of a page .htm page on anyones site

cut and paste this code into the url when u are a .htm page

javascript:alert(document.lastModified)

or bookmark that code or make it a link on the tool bar or something

newyorker1907
08-28-2006, 12:13 AM
interesting. thanks

Ranky
09-22-2006, 07:40 AM
That isn't a bad script. But it doesn't seem very complicated :)

m4trix
12-06-2006, 12:08 AM
That isn't a bad script. But it doesn't seem very complicated :)

Sometimes that is best.

K.I.S.S. :P

adpyramid
12-08-2006, 08:24 PM
I just keep getting the 'current' date/time... How do I use this again??

ruptbot
12-12-2006, 08:15 AM
I just keep getting the 'current' date/time...

so do i, and i tried it on an old page that i know hasnt been updated

Googled
12-14-2006, 09:17 PM
This is not what I call a cool javascript..

try :

document.write("Cool Javascript");

this is one ;)

G

Slepe Host
09-07-2011, 06:48 PM
If you put javascript:alert(document.lastModified) on a page or even on a old page it will return todays date. Because you are modifing by putting that in there???

8088
09-07-2011, 07:00 PM
With JavaScript, which is client-side in this case, you can't detect something server-side without having the server send that information. It will only show the last modified date if it was sent as a Last-Modified header by the server. If the header isn't sent, it wil show the current client's date and time.

Very old topic by the way.