TextRange.moveToPoint() (Method)

Expand the text range to include an x, y location.

Availability:

JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyTextRange.moveToPoint(anX, aY)
Argument list:anXAn X coordinate value
aYA Y coordinate value

The TextRange can be set to create an insertion point in the text that corresponds with the X-Y coordinate point of an onscreen location. This is smart stuff indeed because it would be very difficult to compute the text flow and correlate it with screen coordinates.

The result is that the TextRange is set to an insertion point.