'scripts' Syntax Parameters and Note : scripts « Javascript Collections « JavaScript Reference

'scripts' Syntax Parameters and Note

Note:

Returns an array of all <script> elements in a document.
    
Syntax:
    
document.scripts // returns all scripts
document.scripts(param1, param2) // returns an individual script

Parameters:
    param1   Required; zero-based index 
                       desired member's id or name attribute.
                       
    param2   Optional; the zero-based index for the result returned
                       if param1 matches more than one element.

    

      
      








Related examples in the same category

1.'scripts' Example
2.'scripts' JavaScript properties and JavaScript methods
3.'scripts' is applied to