Getting the selected text in a TEXTAREA tag 
Author Message
 Getting the selected text in a TEXTAREA tag

Hello,

I try to get the selected text in a TEXTAREA tag, but the
object has no 'selectedText' property or somtinhg llike
this...8(

thanx a lot for your help

Olivier



Sun, 29 Aug 2004 18:29:53 GMT  
 Getting the selected text in a TEXTAREA tag


Quote:
> Hello,

> I try to get the selected text in a TEXTAREA tag, but the
> object has no 'selectedText' property or somtinhg llike
> this...8(

> thanx a lot for your help

> Olivier

Search MSDN for the TextRange object.

--
Gosha
www.stereofrog.com



Sun, 29 Aug 2004 22:10:21 GMT  
 Getting the selected text in a TEXTAREA tag
IE4+ on Win
   document.selection.createRange().text
Note that this returns any selection, whether in a textarea or elsewhere
in the page

Quote:

> Hello,

> I try to get the selected text in a TEXTAREA tag, but the
> object has no 'selectedText' property or somtinhg llike
> this...8(

> thanx a lot for your help

> Olivier

--

        Martin Honnen
        http://javascript.faqts.com/
        http://home.t-online.de/home/martin.honnen/jsgoddies.html



Sun, 29 Aug 2004 22:10:03 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Getting selected text from a textarea..

2. Select highlighted text from TEXTAREA or TEXT input

3. Selecting Text in a TextArea object

4. How to manipulate text selected in a textarea?

5. Retrieving selected Text from a textarea??

6. How to determine the selected option in a Select tag

7. Using html tag in a textarea

8. Response.Write TextArea HTML tags

9. Getting Cursor Position In a TextArea (URGENT)

10. Catching selected substring from <TEXTAREA>

11. Getting cursor position in TEXTAREA field

12. Selected Text in Text Box

 

 
Powered by phpBB® Forum Software