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

innerText Property

Internet Development Index

Sets or retrieves the text between the start and end tags of the object.

Syntax

HTMLN/A
Scriptingobject.innerText [ = sTxt ]

Possible Values

sTxtString that specifies or receives the text between the start and end tags.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

The innerText property is valid for block elements only. By definition, elements that do not have both an opening and closing tag cannot have an innerText property.

The innerText property is read-only on the html, table, tBody, tFoot, tHead, and tr objects.

When the innerText property is set, the given string completely replaces the existing content of the object.

You can set this property only after the onload event fires on the window. When dynamically creating a tag using TextRange, innerHTML, or outerHTML, use Microsoft® JScript® to create new events to handle the newly formed tags. Microsoft Visual Basic® Scripting Edition (VBScript) is not supported.

You can change the value of the title element using the document.title property.

To change the contents of the table, tFoot, tHead, and tr elements, use the table object model. For example, use the rowIndex property or the rows collection to retrieve a reference to a specific table row. You can add or delete rows using the insertRow and deleteRow methods. To retrieve a reference to a specific cell, use the cellIndex property or the cells collection. You can add or delete rows using the insertCell and deleteCell methods. To change the content of a particular cell, use the innerHTML property.

Example

This example uses the innerText property to replace an object's contents. The object surrounding the text is not replaced.

<P ID=oPara>Here's the text that will change.</P>
:
<BUTTON onclick="oPara.innerText='WOW! It changed!'">Change text</BUTTON>
<BUTTON onclick="oPara.innerText='And back again'">Reset</BUTTON>
This feature requires Microsoft® Internet Explorer 4.0 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, CUSTOM, DD, DEL, DFN, DIR, DIV, EM, FIELDSET, FONT, FORM, hn, HTML, I, IFRAME, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, nextID, NOBR, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, 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

insertAdjacentText
巴林左旗| 周宁县| 高州市| 盱眙县| 绵竹市| 芦溪县| 金昌市| 衡南县| 大同县| 周口市| 嘉峪关市| 罗江县| 舟曲县| 开原市| 文登市| 栾城县| 丰城市| 鄢陵县| 江津市| 嘉黎县| 紫阳县| 石渠县| 元朗区| 临潭县| 望谟县| 白玉县| 平邑县| 中西区| 德阳市| 嫩江县| 冀州市| 宁强县| 兰溪市| 抚松县| 师宗县| 葫芦岛市| 大姚县| 新田县| 乐昌市| 天水市| 杨浦区|