[Solved] Set cursor in first field on screen to filled
Posted: Tue Oct 21, 2008 3:17 am
Hi,
During the building and testing of my modules, it disturbes me that whenever I open a new page I have to set the focus to the first field to be entered with the mouse.
Is there a code part that I can push in to my coding that tells the webpage to focus on the first field that I define.
Example: when I open up the admin login screen of a CMSMS website, the focus (the cursor) is on the username. I can start typing immediately. When I use, in the back end, Content, Pages, Edit page: home, I can't find the active field/button. I would expect it to be on the content type or title.
The same is true for the modules that I build.
So how to set the focus to the content type field.
Duketown
Using IE7
[Edit: Same situation in Google Chrome]
During the building and testing of my modules, it disturbes me that whenever I open a new page I have to set the focus to the first field to be entered with the mouse.
Is there a code part that I can push in to my coding that tells the webpage to focus on the first field that I define.
Example: when I open up the admin login screen of a CMSMS website, the focus (the cursor) is on the username. I can start typing immediately. When I use, in the back end, Content, Pages, Edit page: home, I can't find the active field/button. I would expect it to be on the content type or title.
The same is true for the modules that I build.
So how to set the focus to the content type field.
Duketown
Using IE7
[Edit: Same situation in Google Chrome]