scriptsscripts*
*



Contents  *



Index  *Topic Contents
*Previous Topic: rules
*Next Topic: styleSheets

scripts

Description

Retrieves a collection of all SCRIPT elements in the document.

Syntax

object.scripts(index)

ParameterDescription
object The document object.
(index) Optional. An integer or a string specifying the index value of the element to retrieve. Integer indexes are zero-based, meaning the first element in the collection has index 0. A string index is valid only if the string is an identifier of at least one element in the document.

Remarks

This collection contains all the scripts in the document in source order regardless of the script's location in the document (whether in the HEAD or BODY).

If duplicate identifiers are found, a collection of those items is returned. Collections of duplicates must subsequently be referenced by ordinal position.

Property

length

Methods

item, tags

Applies To

document


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.