[Javascript] Last modification made on a web page

Last update on August 22, 2009 02:05 PM by jak58
Published by jak58

[Javascript] Last modification made on a web page






Monitoring changes made your website:
Using JavaScript, it is possible to display the last modification made on a the web page through the lastmodified property of the object document:

<SCRIPT language="javascript">
<!--
var lastModif=document.lastModified;
var dateModif = new Date(lastModif);
var day = dateModif.getDate();
var month=dateModif.getMonth();
var year=dateModif.getYear();
var hours=dateModif.getHours();
var minutes=dateModif.getMinutes();

document.write("la modification made on the ");
document.write(day+"/"+"month"+"/"+year+" at "+hours+":"+minutes);

//-->
</SCRIPT>
Best answers for « Last modification made on a web page » in :
White background's problem in web pages Show Your web pages will be displayed more accurately : No background color, everything is white !!! (Like this image) To resolve this problem follow these steps : 1. Go to the "Control Panel" : Click on "Option accessibility" 2. In the...
Centering vertically a web page Show Centering vertically a web page e .js file e .html file Centering vertically a web page; consider it as a waste time trying to achieve it with CSS. The most practical solution is to use JavaScript. e .js file Copy/paste the...
Personalize web pages with GreaseMonkey ShowPersonalize web pages with GreaseMonkey What is GreaseMonkey? Example 1 Example 2 XPath Utilities removeElement() removeAttributeOfElement() setAttributeOfElement() injectCSS() Links What is GreaseMonkey? GreaseMonkey is an...
How can I save web pages on my computer? ShowHow can I save web pages on my computer? IE Google Chrome Firefox IE For Internet Explorer, click on the File menu. Click on "Save As" In the "Save as type" field, drop down the list and choose "Web Archive (Single...
Fonts used in web pages ShowFonts used in web pages How to solve this issue? Default fonts If you have chosen the perfect font that reflects the atmosphere of your website as well as the global idea that you want the user to get from it, you should be careful...
Download Page Saver Basic ShowThe tools of screen shot only capture the visible zone of the screen. It is sometimes necessary to have a complete capture of a web page. Pearl Crescent Page Saver is an extension of Mozilla Firefox allowing the capture of a whole web page. The...
HTML forms ShowForms Interactive forms let web page authors give their pages interactive elements, such as for receiving messages from their readers, much like the reply cards found in some magazines. The reader enters information by filling in fields or clicking...
Hyperlinks ShowIntroduction to anchors Hypertext links or hyperlinks (anchors) are HTML elements that, when clicked on, enable readers to visit a new address. Hyperlinked text is underlined by default. Hyperlinks are what connect web pages to one another. They...
Backgrounds ShowAdding a Background Image A background image for a web page can be set using the tag: Attribute Visual Effect BACKGROUND="image" Displays image as background bgcolor="name_of_Colour or #XXXXXX" Displays the given colour...