最新国产好看的视频,伊人天堂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
思南县| 灌阳县| 柳林县| 昌邑市| 远安县| 海口市| 平南县| 乐平市| 库尔勒市| 九台市| 新密市| 江都市| 卫辉市| 思茅市| 长治市| 宜昌市| 灌阳县| 中牟县| 商丘市| 泌阳县| 吉安市| 汝州市| 乌审旗| 清原| 正镶白旗| 临海市| 仪征市| 抚顺市| 韩城市| 义马市| 威宁| 青神县| 贵溪市| 叶城县| 灵宝市| 图木舒克市| 英吉沙县| 马山县| 玛纳斯县| 潼南县| 宁夏|