Javascript Reference
Categories: Range

javascript Range startOffset

@March 15, 2008, 1:22 a.m.
startOffsetFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  

Read-only  

Returns an integer count of characters or nodes for the start point's location within the node reported by the startContainer property. If the startContainer is a text node, the startOffset property counts the number of characters to the right of the first character of that text node. If the startContainer is an element node, the startOffset property counts the number of nodes between the start of the containing node's content and the start point. See endOffset for more details.

 
Example
 
var rngStartOff = rng.startOffset;
 
Value

Integer.

 
Default

None.


Powered by Linode.