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

applyElement Method

Internet Development Index

Makes the element either a child or parent of another element.

Syntax

oElement = object.applyElement(oNewElement [, sWhere])

Parameters

oNewElement Required. Object爐hat becomes the child or parent of the current element.
sWhere Optional. String爐hat specifies one of the following values:
outsideDefault. Specified element becomes a parent of the current element.
insideSpecified element becomes a child of the current element, but contains all children of the current element.

Return Value

Returns燼 reference to the applied element.

Remarks

This method is accessible at run time. If elements are removed at run time before the closing tag is parsed, areas of the document might not render.

Calling the applyElement method on an element that has been created with the createElement method, but not yet added to the document tree, will cause the element to lose the contents of its innerHTML property.

Example

This example uses the applyElement method to apply the i element to an unordered list.

<SCRIPT>
function fnApply(){
var oNewNode = document.createElement("I");
oList.applyElement(oNewNode);
}
</SCRIPT>
<UL ID = oList>
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</UL>
<INPUT
TYPE="button"
VALUE="Apply Element"
onclick="fnApply()"
>

Standards Information

There is no public standard that applies to this method.

Applies To

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

See Also

getAdjacentText, insertAdjacentElement, replaceAdjacentText, About the W3C Document Object Model
兴城市| 乃东县| 金昌市| 什邡市| 肃南| 尤溪县| 新邵县| 郸城县| 息烽县| 香格里拉县| 榕江县| 黄梅县| 博爱县| 尉氏县| 政和县| 南京市| 乾安县| 门源| 衡东县| 博爱县| 板桥市| 察隅县| 渝中区| 柳江县| 樟树市| 牟定县| 广水市| 芒康县| 唐山市| 华坪县| 始兴县| 菏泽市| 灵寿县| 靖宇县| 和政县| 洪湖市| 娄烦县| 虹口区| 清丰县| 阳新县| 黄石市|