|
On Fri, 26 Aug 2005 15:35:44 +0100, Roger Johansson <roger4911@xxxxxxxxx>
wrote:
Earlier I used proxomitron and I had a filter which put the
last-modified date of the current web page in the title of
the program, or as a field in the web page.
Is there some way to get that function in Opera,
through the use of javascript, a bookmarklet, or whatever
means it takes, so we can see the last-modified date of
the website we are currently looking at.
document.lastModified is the Javascript property that has this date in
GMT. If the server didn't send a date then Opera returns "January 1, 1970
GMT".
You could create a bookmark with a URL of:
javascript:alert(document.lastModified=='January 1, 1970 GMT'?'No
last-modified date available':document.lastModified)
...and then use that on the current web page. You could even display it as
an icon in a toolbar if you like, for quick access (or give it a nickname).
But be aware that a recent last modified date is no guarantee that the
information in a document is current, it might just be when the layout was
last changed, the site was moved to another server or some automated tool
modified the file (such as some batch processor that simply updated the
navigation links or something). Also, most dynamically generated pages
(PHP, ASP, etc) don't give these dates.
--
Using Opera's revolutionary Email client: http://www.opera.com/mail/
|
|