Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

Get Webpage File Date and File Size

The document object has several properties that can provide you with information about a webpage's file. The document object's fileCreatedDate, fileModifiedDate, and fileSize properties can be used to determine the date a webpage was created, the date it was last modified, and the size of the webpage file. The example below shows how you could display these properties.

<html>
<head>
<script language="JavaScript">

function getSizeDates()
{
document.writeln("Created: " + document.fileCreatedDate);
document.writeln("Modified: " + document.fileModifiedDate);
document.writeln("Size: " + document.fileSize + " bytes");
}

</script>

</head>
<body onload="getSizeDates()">
</body>
</html>

These methods receive their information from the operating system file manager, so you must understand how the operating system deals with files to understand the information provided by these methods. For example, if you move a file, it keeps the same fileCreatedDate. If you make a copy of the file, the fileCreatedDate of the copy will be the date you created the copy. Renaming a file does not change the fileCreatedDate, but the fileModifiedDate will be the date that you renamed the file.

RSS Feed RSS Feed



Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268