2.1.2.3 contains

contains

The contains method checks whether the specified element is contained within the object.

Parameters

oElement

Element object that specifies the element to check.

Return Value

Boolean. Returns one of the following possible values:

True - The element is contained within the object.

False - The element is not contained within the object.

JScript Error

The error 'null' is null or not an object is raised if elements defined in the script are not present.