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.
In MSIE version 4, this returns a generic Collection object instead of aScriptArray object.
If you interrogate this array in-line while the document is loading, you will not see any script blocks that follow the one containing the script that inspects the array. That suggests this should be used once the document has completed loading.
Prev | Home | Next |
Document.routeEvent() | Up | Document.selection |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |