ShareJS首页
JavaScript代码
JavaScript教程
JavaScript软件资源
JavaScript在线小工具
JQuery框架
首页
>
JavaScript代码
>
日期.日历 Date
>
显示网页最后更新时间
> 查看完整源代码
显示网页最后更新时间
兼容性: 更新时间:2008-9-25
查看代码说明>>>
简介:该代码可以简单的显示当前所访问的网页的最后更新时间
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>分享JavaScript-sharejs.com</title> </head> <body> <div align="center"> <center> <table border="0" width="179" height="87" cellspacing="0" cellpadding="0" bgcolor="#336699"> <tr> <td width="179" height="87" style="cursor:hand" onclick=alert("网页最后更新时间\n"+document.lastModified)> <p align="center"><font size="2" face="Tahoma" color="#FFFFFF"> 网页最后更新时间:<br> <script>document.write(document.lastModified)</script></font></p> </td> </tr> </table> </center> </div> <br><br> <div align="center"> 获取更多JavaScript代码,请登录JavaScript分享网 <a href="http://www.sharejs.com">http://www.sharejs.com</a> </div> </body> </html>
提示:点击“运行代码”可预览效果,可以修改部分代码后再运行!