SQL PHP HTML ASP JavaScript articles and free scripts to download
 

document.lastModified of a page

WE can collect the last modified or created date of the current file by using document object lastModified property.
Here is the syntax
document.lastModified
The above command is case sensitive

The output of current page is here Here is the complete code for you to try.
<html>
<head>
<title></title>
<script type="text/javascript">
document.write(document.lastModified);
</script>
</head>
<body>

</body>
</html>

Found anything wrong or wants to improve the code by adding more features? Post your short comment here or use the Forum



Further readings
referrer: Getting the referrer of the browser to know how the visitor has arrived
title: Managing the title of the page
url: Collecting the full script path or URL by document object
lastModified: Last Modified date & time of the file or page
domain: domain name of the URL or site using this script
write: sening output text to browser by using document.write


Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked

Join Our Email List
Email:  
For Email Newsletters you can trust
Document Object
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2013 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer