JavaScript Reference/Javascript Properties/lastModified

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

"lastModified" Example

   <source lang="javascript">
   

<html> <body> <img id="myImage" src="yourimage.gif">
<button onclick="alert(document.lastModified);">Document Modified On</button> </body> </html>


     </source>
   
  


"lastModified" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |document | +----------------+--------------------------------------------------------------+

     </source>
   
  


"lastModified" Syntax and Note

   <source lang="javascript">

Note: Read-only property. Returns the document last-modified date.

Syntax:

document.lastModified


     </source>