Retrieves a value indicating whether the object can contain children.
Syntax
HTML
N/A
Scripting
[ bChildren = ] object.canHaveChildren
Possible Values
bChildren
Boolean that
receives one of the following values.
false
Object cannot be a parent to child objects.
true
Object can be a parent to child objects.
The property is read-only.
The property has no default value.
Remarks
Objects do not have to contain children for the canHaveChildren property to return true. This property is useful in determining whether objects can be appended as children.
Example
This example uses the canHaveChildren property to add a new object to the first element in a Web page that can contain children.
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
Standards Information
There is no public standard that applies to this property.