[Javascript] detecting an onChange event of a form object

Hassan Schroeder hassan at webtuitive.com
Mon Jun 30 19:20:24 CDT 2003


DEV wrote:

> http://www.childbirthsolutions.com/support/glossary/howto.php has a pretty
> good tool called Active Glossary. 
> 
> What it is that you highlight a word, on key up, it does look up.

(I think you meant on mouse up.)

> If there is anyone who'd like to hassle with it to sort this out and share
> the results back with the list, go ahead.

You're too generous :-)

For Mozilla, window.getSelection() is the primary method you need;
more info at:

<http://lxr.mozilla.org/seamonkey/source/content/base/public/nsISelection.idl>

If I cared about IE, I'd search at <http://msdn.microsoft.com/> for
an equivalent interface.

HTH!
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list