JavaScript 的对象属性

 

以下的属性可在 JavaScript中用到:
  • action
  • alinkColor
  • anchors
  • bgColor
  • checked
  • current
  • defaultChecked
  • defaultSelected
  • defaultStatus
  • defaultValue
  • E
  • elements
  • fgColor
  • forms
  • frames
  • hash
  • host
  • hostname
  • href
  • index
  • lastModified
  • length
  • linkColor
  • links
  • LN2
  • LN10
  • loadedDate
  • location
  • method
  • name
  • options
  • parent
  • pathname
  • PI
  • port
  • protocol
  • referrer
  • search
  • selected
  • selectedIndex
  • self
  • SQRT1_2
  • SQRT2
  • status
  • target
  • text
  • title
  • top
  • value
  • vlinkColor
  • window

  • action property

    String value of a FORM tag's ACTION attribute.

    Applies to

    form

    Examples

    xxx Examples to be supplied.


    alinkColor property

    RGB value for color of activated links (after mouse-button down, but before mouse-button up), expressed as a hexadecimal triplet. This property is the JavaScript reflection of the ALINK attribute of the HTML BODY tag.

    Applies to

    document

    Examples

    xxx Examples to be supplied.


    anchors property

    Array of objects corresponding to named anchors (<A NAME=""> tags) in source order.

    The anchors array contains an entry for each anchor in a document. For example, if a document contains three anchors, these anchors are reflected as document.anchors[0], document.anchors[1], and document.anchors[2].

    To obtain the number of anchors in a document, use the length property: document.anchors.length.

    Applies to

    document

    Examples

    xxx Examples to be supplied.

    See also