Click to See Complete Forum and Search --> : Which element has focus


lascoff
08-21-2003, 10:16 AM
How do I determine which element on a form has focus?

Charles
08-21-2003, 01:58 PM
You go the other direction and use each element's "onfocus" handler. Or you could add the following to each element.

onfocus="window.focused = this.name"