0
Thanks

A few words of thanks would be greatly appreciated.

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>
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Related

This document, titled « Javascript - Last modification made on a web page », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

0 Comments