javascript Element canHaveChildren
@March 15, 2008, 1:22 a.m.
canHaveChildren | Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a |
Read-only | |
Specifies whether the current element may act as a container of other elements. The property value is based on IE for Windows built-in HTML DTDs, which define several elements (such as <br>) that may not have child nodes inserted into them. |
|
Example | |
if (elementRef.canHaveChildren) {
// statements to insert or append child elements
}
|
|
Value | |
Boolean value: true | false. |
|
Default | |
Element-specific. |
Permanent URL:
http://javascript.gakaa.com/element-canhavechildren.aspx
Powered by Linode.