Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Need Help ASAP with text selections and focus


Message #1 by "Chris Cote" <cotec@s...> on Wed, 23 Jan 2002 17:22:51
Here's another poser for anyone out there.  Is there any way to determine 
if a text box has the focus, and if so, what is the statement for it?  I 
found some code that will grab highlighted text anywhere on a page.  The 
only exception is that in Netscape, I can't grab text from any inputs.  It 
has to be on the page itself.  If anyone knows of a way to grab text from 
a text box in Netscape, please let me know.  I'd like to find out how for 
the current program I'm working on.

The function I found is at:

      http://www.webreference.com/js/column12/crossbrowser.html

Chris

  Return to Index