javascript Range startOffset
@March 15, 2008, 1:22 a.m.
startOffset | Firefox/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. |
Permanent URL:
http://javascript.gakaa.com/range-startoffset.aspx
Powered by Linode.