getScriptElementByCode

This function searches the content of <script> tags and returns an htmlElement object that contains the specified code string. If more than one matching element is found, only the first object is returned.

Syntax

function xweb.document.getScriptElementByCode(
code : String
) : htmlElement

Parameters

code   A string that contains text that getScriptElementByCode will search for inside script blocks. The search is not case-sensitive.

Returns

This function returns the htmlElement object that contains the string specified by code. If no matching string is found, undef is returned.

See Also

Concepts

htmlElement
document
document Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.