Web page date?
Web page date?
(OP)
Is there any way to determine the date that a web page was last revised? I tried contacting the web page owner without success. I want to verify if the information provided is current. Any suggestions?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Contact USThanks. We have received your request and will respond promptly. Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
|
Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.
Here's Why Members Love Eng-Tips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: Web page date?
CODE
<!--
var lastmod=new Date(document.lastModified);
document.write("<i>Last Modified: " + lastmod.toGMTString().slice(4,16) + "</i>");
//-->
</script>
RE: Web page date?
I'm not familiar with HTML code so I'm not sure if I added it correctly. I viewed the source and pasted the code you provided into the source code. I was unable to see when the page was last revised. Where will this information appear? Does it make a difference where I insert the information you provided?
If I want to see the revision date, do I only leave "slice" out?
Thanks for your help.
RE: Web page date?
CODE
<head><title>From Eng-Tips</title></head>
<body>
The stuff before<br>
<script language="Javascript">
<!--
var lastmod=new Date(document.lastModified);
document.write("<i>Last Modified: " + lastmod.toGMTString().slice(4,16) + "</i><br>");
//-->
</script>
The stuff after<br>
</body>
</html>
RE: Web page date?
RE: Web page date?
The only way to find out when it was revised (unless it shows in on the source already) is to contact the webpage owner. Sorry.
Chris
RE: Web page date?
javascript:alert(document.lastModified)
This will pop-up a little dialog box showing the date and time of the last update. This wont work for dynamically created pages like php scripts, as it will just give the time that the page finished downloading to your browser.
Hope this was of some help and wasn't too late!
RE: Web page date?
Thank you!! That is EXACTLY what I was looking for! Never too late for good advice.
MotorCity