JavaScript DHTML/Development/File Date

Материал из Web эксперт
Перейти к: навигация, поиск

"fileCreatedDate" Example

    
<html>
<body>
<img id="myImage" src="http://www.wbex.ru/style/logo.png"><br>
<button onclick="alert(document.fileCreatedDate);">Document Created On</button>
<button onclick="alert(myImage.fileModifiedDate);">Image Modified On</button>
<button onclick="alert(myImage.fileSize);">Image Size</button>
<button onclick="alert(myImage.fileUpdatedDate);">Image Updated on</button>
<button onclick="alert(document.lastModified);">Document Modified On</button>
</body>
</html>



"fileModifiedDate" Example

    
<html>
<body>
<img id="myImage" src="http://www.wbex.ru/style/logo.png"><br>
<button onclick="alert(document.fileCreatedDate);">Document Created On</button>
<button onclick="alert(myImage.fileModifiedDate);">Image Modified On</button>
<button onclick="alert(myImage.fileSize);">Image Size</button>
<button onclick="alert(myImage.fileUpdatedDate);">Image Updated on</button>
<button onclick="alert(document.lastModified);">Document Modified On</button>
</body>
</html>



"fileUpdatedDate" Example

    
<html>
<body>
<img id="myImage" src="http://www.wbex.ru/style/logo.png"><br>
<button onclick="alert(document.fileCreatedDate);">Document Created On</button>
<button onclick="alert(myImage.fileModifiedDate);">Image Modified On</button>
<button onclick="alert(myImage.fileSize);">Image Size</button>
<button onclick="alert(myImage.fileUpdatedDate);">Image Updated on</button>
<button onclick="alert(document.lastModified);">Document Modified On</button>
</body>
</html>