getScriptElementByFile

This function returns the element that has a <script> tag that contains the specified fileNamePattern. If more than one matching element is found, only the first object is returned.

Syntax

function xweb.document.getScriptElementByFile(
fileNamePattern : String
) : htmlElement

Parameters

fileNamePattern   A string that contains the file name of the script to search for.

Returns

This function returns the htmlElement object that contains the specified fileNamePattern. If no matching element is found, undef is returned.

See Also

Concepts

htmlElement
document
document Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.