Wow, that sounds great. But I when I look inside the "event object"
and "element object" documentation, I see nothing at all about any
rangeParent, rangeOffset, or range objects, or anything like that.
I'm at a loss. What code retrieves an events rangeParent or
rangeOffset?
https://developer.mozilla.org/en/DOM/Event
https://developer.mozilla.org/en/DOM/element
However, I did find a mention of event.rangeParent and
event.rangeOffset
at the following web-page:
http://help.dottoro.com/ljifpseq.php#supByObj
.
So I guess there is or was something like this afterall, though a
search
throught the mozilla domain finds no matches for rangeParent or
rangeOffset.
I'm a bit worried, though. I need to know what character the mouse
cursor
is over during mousemove events (or actually, in a setTimeout event
handler
that goes off 200ms after last mousemove. But the point is, I need
this
information when there is no selection, and not even a mousedown
event.
Is there going to be a selection even in this case (no mouse buttons
down)?
If not, maybe the javascript can fake a mousedown [and mouseup] to
trick
mozilla into capturing that location in a range object as the
selection "anchor".
PS: Am I looking in the wrong places to find what properties and
methods
exist for each DOM/mozilla/javascript object?