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

createTextRange Method

Internet Development Index

Creates a TextRange object for the element.

Syntax

oTextRange = object.createTextRange()

Return Value

Returns燼 TextRange object if successful, or null otherwise.

Remarks

Use a text range to examine and modify the text within an object.

Examples

This example uses the createTextRange method to create a text range for the document, and then uses the text range to display all the text and HTML tags in the document.

<SCRIPT LANGUAGE="JScript">
var rng = document.body.createTextRange( );
if (rng!=null) {
alert(rng.htmlText);
}
</SCRIPT>

This example uses the createTextRange method to create a text range for the first button element in the document, and then uses the text range to change the text in the button.

<SCRIPT LANGUAGE="JScript">
var coll = document.all.tags("BUTTON");
if (coll!=null && coll.length>0) {
var rng = coll[0].createTextRange();
rng.text = "Clicked";
}
</SCRIPT>

Standards Information

There is no public standard that applies to this method.

Applies To

BODY, BUTTON, INPUT type=button, INPUT type=hidden, INPUT type=password, INPUT type=reset, INPUT type=submit, INPUT type=text, TEXTAREA
天津市| 屯留县| 象州县| 博野县| 丰宁| 池州市| 铜陵市| 桂平市| 娄烦县| 西充县| 会同县| 漳平市| 射阳县| 望城县| 连平县| 常州市| 邢台县| 楚雄市| 仪陇县| 肥城市| 老河口市| 黄平县| 临泉县| 鄂尔多斯市| 镇江市| 淮安市| 建水县| 汶川县| 礼泉县| 望江县| 铁力市| 康定县| 余姚市| 翁源县| 辉县市| 昌宁县| 上犹县| 凉山| 青铜峡市| 称多县| 育儿|