Document.scripts[] (Collection)

An array of all the <SCRIPT> blocks in a document.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:ScriptArray object
JavaScript syntax:IEmyDocument.scripts
HTML syntax:<SCRIPT>

This is an array with references to a collection of objects that represent the <SCRIPT> blocks in the current document.

Unnamed <SCRIPT> blocks are placed into the array with numbered index values. <SCRIPT> having an ID="..." HTML tag attribute will be added to the array associatively. The NAME="..." HTML tag is not reflected in this associative naming scheme and does not work with <SCRIPT> blocks.

Warnings:

See also:<SCRIPT ID="...">, <SCRIPT>, Document object, ID="...", SCRIPT object, ScriptArray object

Property attributes:

ReadOnly.