This sample uses the canHaveChildren property to determine if an object can contain children before adding a child node. Click the Add Child button to look through the different elements in the gray-shaded DIV. The first element that can contain children, NOBR, will be appended with a SPAN and a TextNode.
P -
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.