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

moveToPoint Method

Internet Development Index

Moves the start and end positions of the text range to the given point.

Syntax

TextRange.moveToPoint(iX, iY)

Parameters

iX Required. Integer爐hat specifies the horizontal offset relative to the upper-left corner of the window, in pixels.
iY Required. Integer爐hat specifies the vertical offset relative to the upper-left corner of the window, in pixels.

Return Value

No return value.

Remarks

The coordinates of the point must be in pixels and be relative to the upper-left corner of the window. The resulting text range is empty, but you can expand and move the range using methods such as expand and moveEnd.

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

Example

This example uses the moveToPoint method to move the text range to the point where the user clicked the mouse, expands the range, and selects the text within the new range.

<SCRIPT FOR=document EVENT=onclick LANGUAGE="JScript">
var rng = document.body.createTextRange();
rng.moveToPoint(window.event.x, window.event.y);
rng.expand("word");
rng.select();
</SCRIPT>

Standards Information

There is no public standard that applies to this method.

Applies To

TextRange
互助| 固镇县| 资溪县| 敦化市| 彭水| 法库县| 常宁市| 鄂伦春自治旗| 洞头县| 图们市| 林口县| 长宁区| 尚义县| 苏尼特左旗| 灵武市| 神池县| 东阿县| 聂荣县| 巫溪县| 徐闻县| 洪雅县| 石狮市| 神池县| 荣昌县| 雅江县| 雅江县| 页游| 舞钢市| 屏东市| 邮箱| 南投县| 庐江县| 长武县| 达日县| 阳原县| 阿瓦提县| 嘉峪关市| 郓城县| 荆州市| 长宁县| 宜兰市|