Saturday, November 13, 2010

Javascript date updated alert

Paste this into the browser address bar to see the last time a webpage was updated:
javascript:alert(document.lastModified)

It will show a pop-up message with the date and time that the page was last updated. This only works for static .HTM and .HTML files. It will display the current date and time for .PHP and .ASP pages since these are dynamically generated by the server at the moment you visit the page.

No comments:

Post a Comment

Only comments in English will be considered. Thank you!