最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

canHaveChildren Property

Internet Development Index

Retrieves a value indicating whether the object can contain children.

Syntax

HTMLN/A
Scripting[ bChildren = ] object.canHaveChildren

Possible Values

bChildrenBoolean that receives one of the following values.
falseObject cannot be a parent to child objects.
trueObject 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.

<SCRIPT>
window.onload=fnInit;
function fnInit(){
var oNewObject=document.createElement("SPAN");
var oNewText=document.createTextNode("Test");
oNewObject.appendChild(oNewText);
for(var i=0;i<document.all.length;i++){
if(document.all[i].canHaveChildren==true){
document.all[i].appendChild(oNewObject);
break;
}
}
}
</SCRIPT>
<INPUT TYPE=button VALUE="Add Child" onclick="fnAddChild()">
<DIV ID=oGrandParent STYLE="background-color: #CFCFCF;">
<WBR>WBR - </WBR>
<BR>
<NOBR>NOBR - </NOBR>
<P>P - <s/P>
</DIV>
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.

Applies To

A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, nextID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

See Also

appendChild, createElement, createTextNode
清原| 辽中县| 仙游县| 湘潭市| 略阳县| 伊通| 玉林市| 潍坊市| 新民市| 土默特左旗| 洛宁县| 大足县| 嫩江县| 资中县| 宿州市| 无棣县| 无为县| 桓仁| 信宜市| 广德县| 郴州市| 宕昌县| 泸定县| 龙岩市| 凤山县| 叙永县| 米泉市| 华蓥市| 承德市| 双辽市| 冕宁县| 和龙市| 五家渠市| 永城市| 普兰县| 开阳县| 岑巩县| 岑溪市| 阿克陶县| 德令哈市| 朝阳区|