scripts | NN n/a IE 4 DOM n/a | |||
A collection of all scripts defined or imported in a document, including those defined in the head or body portion. Collection members are sorted in source code order. |
||||
Object Model Reference | ||||
document.scripts |
||||
Object-Specific Properties | ||||
|
||||
Object-Specific Methods | ||||
|
||||
Object-Specific Event Handler Properties | ||||
None. |
length | NN n/a IE 4 DOM n/a |
Read-only | |
Returns the number of elements in the collection. |
|
Example | |
var howMany = document.scripts.length; |
|
Value | |
Integer. |
item( ) | NN n/a IE 4 DOM n/a |
item(index[, subindex]) | |
Returns a single object or collection of objects corresponding to the element matching the index value (or, optionally, the index and subindex values). |
|
Parameters | |
|
|
Returned Value | |
One object or collection (array) of objects. If there are no matches to the parameters, the returned value is null. |
namedItem( ) | NN n/a IE 6 DOM n/a |
namedItem("ID") | |
Returns a single script object or collection of script objects corresponding to the element matching the parameter string value. |
|
Parameters | |
|
|
Returned Value | |
One script object or collection (array) of script objects. If there are no matches to the parameters, the returned value is null. |
urns( ) | NN n/a IE 5(Win) DOM n/a |
urns(URN) | |
See the all.urns( ) method. |