[Mediawiki-l] Focus on the search field

Vasiliadis, Thomas T.Vasiliadis at schlemmerblock.de
Wed Mar 29 11:09:04 UTC 2006


OK, I think I won't do such a thing :-)
Thank you for ure time

TV

-----Ursprüngliche Nachricht-----
Von: mediawiki-l-bounces at Wikimedia.org [mailto:mediawiki-l-bounces at Wikimedia.org] Im Auftrag von Brion Vibber
Gesendet: Mittwoch, 29. März 2006 12:31
An: MediaWiki announcements and site admin list
Betreff: Re: [Mediawiki-l] Focus on the search field

Vasiliadis, Thomas wrote:
> Hi,
>  
> is there any way to set the focus on the search field, so that if I 
> open the Wikistartpage, I can write in the search field without use 
> the mouse first such is it solved by google.

Although MediaWiki includes a search tool, it is a *wiki*, not a search engine.
Setting focus to the search field would:

* destroy keyboard navigation
* destroy the ability to use fragment links to jump to sections
* generally be very annoying 99% of the time

If for some reason you insist on doing this, you can just slip in some JavaScript. There are numerous JavaScript references on the web.

-- brion vibber (brion @ pobox.com)




More information about the MediaWiki-l mailing list