[Mozile] putting focus programmatically

Eduardo Carlos Hamerski Jr ehamerski at gmail.com
Thu Jul 26 04:04:21 PDT 2007


Hi there,

In my project can have many areas to be edited.
Firstly the user needs to select one and when one of that areas is 
selected, editElement function is called for that area.
Because this behavior, the user needs to click twice to put the focus in 
that area and starts the edition.
Is there a way to put the focus, programmatically, in that area and 
avoid twice clicks?

PS. When I say put the focus I am thinking in put the cursor inside the 
selected area to start the edition.

Thanks a lot.
Best regards.

Hamerski.


More information about the Mozile mailing list