javascript的一些对象的应用

Document Object
domain Returns the server domain name which served the document.
images Returns the images in the document.
lastModified Returns the date the file was last modified.
links Returns the links of the document.
referrer Returns the referrer of the document.
title Returns the title of the document.
URL Returns the the entire URL of the document.

Date Object
getDate Returns an integer set to the date's object day in the month.
getDay Returns an integer set to the date's object day in the week.
getYear Returns a the year of the date object.
toGMTString Returns a string set to the Greenwich Mean Time (GMT) or Coordinated Universal Time (UTC).
toLocaleString Returns a string set to the current locale time.

<SCRIPT LANGUAGE="JavaScript">
<!--
var theimages = document.images;
document.write("The images in this document are<br>");
for(var i = 1; i < theimages.length; i++){
 document.write(theimages[i].src + "<br>");
}

document.write("The server which served this document is "+ document.domain)

document.write("The URL of this document is "+ document.URL)
// -->
</SCRIPT> 

300*300
 文章首页关于迷茫时代关于我写意人生
版权所有:迷茫时代 All rights reserved   
执行时间:0.00413 秒