JavaScript的对象

 

The following objects are available in JavaScript:
  • anchor
  • applet
  • button
  • checkbox
  • Date
  • document
  • form
  • history
  • link
  • location
  • Math
  • password
  • radioButton
  • reset
  • selection
  • string
  • submit
  • text
  • textArea
  • window
  • NOTE: Each object topic indicates whether the object is part of the client (in Navigator), server (in LiveWire), or is common (built-in to JavaScript). Server objects are not included in this version of the documentation.


    anchor object (client)

    An anchor is a piece of text identified as the target of a hypertext link.

    Syntax

    To define an anchor, use standard HTML syntax :

    &LTA NAME="anchorName"
       anchorText
    &LT/A&GT
    

    NAME specifies a tag that becomes an available hypertext target within the current document.
    anchorText specifies the text to display at the anchor.

    Description

    You can reference the anchor objects in your code by using the anchors property of the document object. The anchors property is an array that contains an entry for each anchor in a document.

    xxx to be supplied

    Properties