Location Bar search

From MozillaZine Knowledge Base
Revision as of 01:24, 8 November 2006 by Cameron (talk | contribs) (Browse by name is default in Firefox 2 apparently.)
Jump to navigationJump to search

When you type a keyword into the Location Bar, Firefox takes you to the top Google result for that search by default. However, by modifying the preference called keyword.URL, you can change this behaviour. Here are a few example values:

http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
Google's "I'm Feeling Lucky" (default pre-Firefox 2.0)
http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
Google "Browse by Name" (Automatically takes you to sites with a clear match, else performs a Google search) (default in Firefox 2)
http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=
Google Search (Google search results page)

If the keyword.URL search is disabled, Firefox may still attempt a simpler lookup, by concatenating a prefix and suffix on the supplied domain name. This action may be enabled or disabled using the browser.fixup.alternate.enabled setting in about:config. The prefix and suffix used can be set using browser.fixup.alternate.prefix and ...suffix.

For more advanced search capabilities, you may want to look into keyword searches and the Search Bar.

See also

External links