[webkit-dev] Get current focused element
David Harrison
harrison at apple.com
Sat Jan 28 06:52:38 PST 2006
window.getSelection().focusNode should work in latest sources/nightly
builds
Dave
On Jan 28, 2006, at 3:21 AM, 4mi(r|x) wrote:
> Hello :)
>
> I am new on the list and I am developing an addition for Safari.
> I would like to know if there is a way of getting the current
> focused element.
> An example, if the focus is on a text-field, then this text-field
> is returned.
> It seems that Mozilla browsers have a
> document.commandDispatcher.focusedElement - - is there something
> similar in WebKit?
>
> Kind regards
> Amir Salihefendic [http://amix.dk]
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at opendarwin.org
> http://www.opendarwin.org/mailman/listinfo/webkit-dev
More information about the webkit-dev
mailing list