| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 95306 | 2008-12-01 21:48:00 | find web page publication date | colmack (2939) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 724752 | 2008-12-01 21:48:00 | How can you find out when any page was published on the web? I remember reading about a method - I think in PressF1 - which involved entering a simple code in the address bar once the page was open. But that was a long time ago, and I've forgotten how. Help appreciated. |
colmack (2939) | ||
| 724753 | 2008-12-01 22:16:00 | Try this javascript:alert(document.lastModified) *Edit* no maybe not what you want - I'll keep thinking! lol |
bevy121 (117) | ||
| 724754 | 2008-12-01 22:56:00 | Here's a wee trick that may be of use :D You can use google to find the earliest date the page was indexed, which is usually pretty close to the publication date Here's the result (www.google.co.uk mdisplay.php%3Ff%3D4&as_qdr=y10&btnG=Search&meta=) if I was looking for the PressF1 earliest date just replace the hxxp://forums.pcworld.co.nz/forumdisplay.php?f=4 in the search pane with the web page url you want to find the date for... |
bevy121 (117) | ||
| 724755 | 2008-12-01 23:03:00 | The javascript:alert(document.lastModified) was what I used a while ago, when I asked the same question :) Didnt seem to work accurately on *all* sites - but some it did! |
Chilling_Silence (9) | ||
| 724756 | 2008-12-02 04:51:00 | Try this javascript:alert(document.lastModified) Oh, that is a nifty trick to know :) |
Jen (38) | ||
| 724757 | 2008-12-02 05:24:00 | You could also try this, which should fish the date out of the headers directly. Note it won't work with all pages. javascript:try{var a=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){var a=new XMLHttpRequest();}a.open('HEAD',location,false);a. send(null);var s=a.getResponseHeader('Last-Modified');if(s!=null)alert('Last Modified: '+s);else{var s=a.getResponseHeader('Date');if(s!=null)alert('Da te: '+s);else alert('Unknown Date')} |
Erayd (23) | ||
| 1 | |||||