Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to tell when a Site was last updated?

Status
Not open for further replies.

JohnWilson

Technical User
Apr 29, 2002
38
GB
I remember being told to type something into the Address bar to find out when a website was last updated but I can't remember what it was

Can anyone out there help??

TIA................
 
Hi mate,

If this is for you to see when you visit another site then check out the following link, it is a free download.


If this is for a web page then the following will do the job.

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!-- Begin
var m = &quot;Page updated &quot; + document.lastModified;
var p = m.length-8;
document.writeln(&quot;<center>&quot;);
document.write(m.substring(p, 0));
document.writeln(&quot;</center>&quot;);
// End -->
</SCRIPT>

Hope this helps Wullie

 
Assuming you have IE's Links bar visible, you could try the following:

1. Right click on any link on any page - it doesnt' matter which one on which page, just pick one - and click on 'Add to Favorites...' in the pop up menu.

2. Name it - you should edit what the 'Add Favorite'
dialogue proposes in its 'Name:' edit box - I suggest you keep it short, something like 'L' or 'Lu' would be good.

3. If the 'Add Favorite' dialogue shows a 'Create In>>' button click it to expand the dialogue and show more details; now - pick the folder to put this for-the-moment place holding favorite in ... yes, scroll down the list tree and click 'Links' then 'Ok' to put it in the 'Links' folder.

4. Right click on the new link in your Links bar and pick properties.

5. Clear the URL: field and replace it with:

javascript:alert(document.lastModified)

6. Click Ok and if a 'Problem with Shortcut' alert appears, click Yes)

Now whenever you're on a page and you want to know the document's last modification date, click the 'L' link

Peter Vince VA3PKV
va3pkv@rac.ca
 
Type this exactly into your Address field:

javascript:alert(docuement.last modified)




A window will pop up on your screen telling you a date this website was last modified/changed. Good luck. bennyo1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top