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

mergeAttributes Method

Internet Development Index

Copies all read/write attributes to the specified element.

Syntax

object.mergeAttributes(oSource [, bPreserve])

Parameters

oSource Required. Pointer to an Object爐hat specifies the attributes copied to the object that invokes mergeAttributes.
bPreserve Optional. Available as of Microsoft® Internet Explorer 5.5. Pointer to a Boolean that specifies one of the following values:
trueDefault. Preserve the identity of the object to which attributes are being merged.
falseDo not preserve the identity of the object to which attributes are being merged.

Return Value

No return value.

Remarks

The mergeAttributes method copies persistent HTML attributes, events, and styles.

In Internet Explorer 5 and earlier, attributes that are read-only, such as ID, are not merged.

As of Internet Explorer 5.5, by choosing not to preserve the identity of the destination object, you can merge all attributes of an object, including ID and NAME.

Example

This example uses the mergeAttributes method to copy attributes, events, and styles from one object to another.

<SCRIPT>
function fnMerge(){
oSource.children[1].mergeAttributes(oSource.children[0]);
}
</SCRIPT>
<SPAN ID=oSource>
<DIV
ID="oDiv"
ATTRIBUTE1="true"
ATTRIBUTE2="true"
onclick="alert('click');"
onmouseover="this.style.color='#0000FF';"
onmouseout="this.style.color='#000000';"
>
This is a sample <B>DIV</B> element.
</DIV>
<DIV ID="oDiv2">
This is another sample <B>DIV</B> element.
</DIV>
</SPAN>
<INPUT
TYPE="button"
VALUE="Merge Attributes"
onclick="fnMerge()"
>
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 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, document, 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

clearAttributes, About the W3C Document Object Model
达拉特旗| 新乐市| 瑞昌市| 江西省| 江川县| 平乐县| 林甸县| 太仆寺旗| 许昌市| 峨山| 唐海县| 容城县| 梅河口市| 新巴尔虎右旗| 龙州县| 合阳县| 夹江县| 大冶市| 康马县| 上蔡县| 陆川县| 大新县| 龙泉市| 桃园市| 且末县| 寿光市| 佛教| 读书| 崇阳县| 恭城| 西和县| 威信县| 牡丹江市| 大兴区| 耒阳市| 开封县| 六安市| 永平县| 霸州市| 泰州市| 镇平县|