I’m developing an extension that requires to set focus to the address bar at some point. I’ve been trying to RTFM, but the FM is so hard to read!
Does anyone know of any way to set focus to the address bar from within a firefox extension?
TIA.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would imagine it would be something like:
assuming document is in the XUL Chrome context.
I haven’t tested that yet though, so I’m not 100% yet.