On Monday 15 September 2003 18:33, Omer Zak wrote: > > You mean their graphical position in (x,y), or you mean the position > > within the text? > > I mean the position within the text. I couldn't care less about the > graphical position.
Try reading the "selectionStart" and "selectionEnd" properties of the HTMLTextArea object. To modify the selected range, use HTMLTextArea's setSelectionRange(start,stop) function. This is probably Mozilla-only API (not in the W3C DOM2 HTML). For the Microsoft version of this, http:// msdn.microsoft.com. For those kinds of things, Mozilla's DOM Inspector (Tools | Web Development | DOM Inspector) is infinitely useful. Simply load your page inside it, point at any object and see its properties. By switching the right pane's mode, you can see the attributes, the CSS properties, the Javascript properties (and methods) and much more. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]