all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

anchorOffset property

Retrieves the starting position of a selection that is relative to the anchorNode.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1

Syntax

JavaScript

p = object.anchorOffset

Property values

Type: Integer

The beginning position of the selection.

Standards information

Remarks

The value that is returned by anchorOffset usually refers to a character position within the text portion of the element.

See also

HTMLSelection
Reference
focusOffset
focusNode
anchorNode

 

 

Show:
© 2014 Microsoft