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

parentElement Method

Internet Development Index

Retrieves the parent element for the given text range.

Syntax

oElement = TextRange.parentElement()

Return Value

Returns the parent element object爄f successful, or null otherwise.

Remarks

The parent element is the element that completely encloses the text in the range.

If the text range spans text in more than one element, this method returns the smallest element that encloses all the elements. When you insert text into a range that spans multiple elements, the text is placed in the parent element rather than in any of the contained elements.

This feature might not be available on non-Microsoft® Win32® platforms.

Example

This example uses the parentElement method to retrieve the parent element for the text range created from the current selection, and display the tag name of the element.

<SCRIPT LANGUAGE="JScript">
var sel = document.selection;
var rng = sel.createRange();
var el = rng.parentElement();
alert(el.tagName);
</SCRIPT>

Standards Information

There is no public standard that applies to this method.

Applies To

TextRange
扬中市| 增城市| 定边县| 封丘县| 广灵县| 云龙县| 吉林省| 景洪市| 惠安县| 自治县| 宜昌市| 鲁山县| 濮阳市| 邹平县| 纳雍县| 封开县| 吴堡县| 昂仁县| 南涧| 井冈山市| 塔城市| 怀集县| 广安市| 麦盖提县| 昂仁县| 连州市| 柯坪县| 尉氏县| 阜平县| 扶余县| 南木林县| 沧州市| 清流县| 宝坻区| 阿克| 远安县| 犍为县| 鄄城县| 白河县| 宣汉县| 南和县|