[Greasemonkey] Finding the form element in focus
Mark Pilgrim
pilgrim at gmail.com
Fri Mar 17 14:12:29 EST 2006
On 3/17/06, Julien Couvreur <julien.couvreur at gmail.com> wrote:
> A little javascript/DOM question:
> Is it possible to find out what form element is currently in focus?
>From chrome, yes, Firefox maintains a global variable for the
currently focused element.
>From GM... possibly track it yourself with
document.addEventListener('focus', trackFocus, true);
?
Cool idea, though. Post a link if you get it working.
--
Cheers,
-Mark
More information about the Greasemonkey
mailing list