[webkit-dev] Get current focused element
harrison at apple.com
Sat Jan 28 06:52:38 PST 2006
window.getSelection().focusNode should work in latest sources/nightly
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
More information about the webkit-dev