Links

A collection of links.

Methods:

anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Link anyItem ()

Returns any Link in the collection.

Number count ()

Displays the number of elements in the Link.

Link everyItem ()

Returns every Link in the collection.

Link firstItem ()

Returns the first Link in the collection.

Link item (index:Varies Long String)

Returns the Link with the specified index or name.

Parameter

Type

Description

index

Long

String

The index or name. Can accept: Long or String.

Link itemByID (id:Number)

Returns the Link with the specified ID.

Parameter

Type

Description

id

Number

The ID.

Link itemByName (name:String)

Returns the Link with the specified name.

Parameter

Type

Description

name

String

The name.

Link itemByRange (from:Varies Link Long String, to:Varies Link Long String)

Returns the Links within the specified range.

Parameter

Type

Description

from

Link

Long

String

The Link, index, or name at the beginning of the range. Can accept: Link, Long or String.

to

Link

Long

String

The Link, index, or name at the end of the range. Can accept: Link, Long or String.

Link lastItem ()

Returns the last Link in the collection.

Link middleItem ()

Returns the middle Link in the collection.

Link nextItem (obj:Link)

Returns the Link whose index follows the specified Link in the collection.

Parameter

Type

Description

obj

Link

The Link whose index comes before the desired Link.

Link previousItem (obj:Link)

Returns the Link with the index previous to the specified index.

Parameter

Type

Description

obj

Link

The index of the Link that follows the desired Link.

String toSource ()

Generates a string which, if executed, will return the Link.

Object of

Document.links