[Greasemonkey] Finding the form element in focus
Mark Pilgrim
pilgrim at gmail.com
Fri Mar 17 14:15:50 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?
>
> I want to create a user script or bookmarklet that transforms the
> currently active text input into a textarea, for better readability.
Disregard my previous message. If all you want to do is change visual
styling, try
*:focus {
outline: 1px solid red;
}
--
Cheers,
-Mark
More information about the Greasemonkey
mailing list