scripts property

Retrieves a collection of all script objects in the document.



p = object.scripts


Property values

Type: IHTMLElementCollection

Array of script objects.

Standards information

There are no standards that apply here.


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 be referenced subsequently by ordinal position.