Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Using textrange object to get all contents of Textarea


Message #1 by "Chris Cote" <cotec@s...> on Fri, 22 Feb 2002 18:15:10
Hi Chris,

Try:
  myTextArea.select();

This should select all the text in the TEXTAREA, and you can then get the 
TextRange with:
  oTextRange = document.selection.createRange();

Regards

Philip
-------------------------
dhtml_phil@p...

  Return to Index