Archive
Posts Tagged ‘input field’
Autofocus on the first input field of a page
April 1, 2011
Leave a comment
Problem
You visit some sites frequently where you conduct some search but first you always have to click on the search field. The best example is IMDB. When I go there, I want to find a movie, so I want to type immediately the title of a movie. Why can’t they set the focus on the search field? I find it very annoying.
Solution
Fortunately someone else had also met this problem :) Visit the post Greasemonkey: focus first input field and install the Greasemonkey script. It sets the focus on the first input field and by default it’s activated for all URL addresses. If you want to limit it to IMDB only, edit the head of the script:
... // @version 1.0 // @include http://www.imdb.com* // ==/UserScript== ...
Location of the script: $HOME/.mozilla/firefox/xxxxxxxx.default/gm_scripts/.
Categories: javascript
autofocus, focus, greasemonkey, imdb, input field, script