• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part VII: Appendixes > The document Object [2|3|I]

The document Object [2|3|I]

The document object reflects attributes of an HTML document in JavaScript.

Properties

  • alinkColor— The color of active links as a string or a hexadecimal triplet.

  • anchors— Array of anchor objects in the order they appear in the HTML document. Use anchors.length to get the number of anchors in a document.

  • applets— Array of applet objects in the order they appear in the HTML document. Use applets.length to get the number of applets in a document. (Not 2.)

  • bgColor— The color of the document's background.

  • cookie— A string value containing cookie values for the current document.

  • domain— A string value indicating the server for the current document.

  • embeds— Array of plugin objects in the order they appear in the HTML document. Use embeds.length to get the number of plug-ins in a document. (Not 2|I.)

  • fgColor— The color of the document's foreground.

  • forms— Array of form objects in the order the forms appear in the HTML file. Use forms.length to get the number of forms in a document.

  • images— Array of image objects in the order they appear in the HTML document. Use images.length to get the number of images in a document. (Not 2|I.)

  • lastModified— String value containing the last date of the document's modification.

  • linkColor— The color of links as a string or a hexadecimal triplet.

  • links— Array of link objects in the order the hypertext links appear in the HTML document. Use links.length to get the number of links in a document.

  • location— A string containing the URL of the current document. Use document.URL instead of document.location. This property is expected to disappear in a future release.

  • referrer— A string value containing the URL of the calling document when the user follows a link.

  • title— A string containing the title of the current document.

  • URL— A string reflecting the URL of the current document. Use instead of document.location. (Not I.)

  • vlinkColor— The color of followed links as a string or a hexadecimal triplet.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint