Home > Web Front-end > JS Tutorial > Automatically display the last updated time using javascript_Basic knowledge

Automatically display the last updated time using javascript_Basic knowledge

WBOY
Release: 2016-05-16 19:16:46
Original
1001 people have browsed it

I frequently update web pages, but I’m always too lazy to figure out the last updated time.
The following uses javascript to display the last updated time.


Haha, it’s that simple. <script> <BR><!--hide script from old browsers <BR>document.write("本页最后更新日期: " + document.lastModified + "") <BR>// end hiding --> <BR></script>

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template