eo_GetContainer Function

Get the closest object that contains the given DHTML element.

Syntax
JavaScript
 function eo_GetContainer(element, type)

Parameters

element
The DHTML element.
type
The object type.
Remarks

Use this function to locate the closest object that contains the given DHTML element. For example, a Dialog can include the following DHTML code in its ContentTemplate:

HTML
<div onclick="eo_GetContainer(this, 'Dialog').close();">
Click here to close dialog
</div>

See Also