Using keyword searches: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 1: Line 1:
In Mozilla you can specify keywords for bookmarks. When you type the keyword in to the location bar and hit enter, the keyword will be replaced with the bookmarked address. What makes keywords very powerful is that if you add a "%s" at some pllace in your bookmark, that will be replaced by the words you type in after your keywords (and before you press Enter).  
In Mozilla you can specify keywords for bookmarks. When you type the keyword in to the location bar and hit enter, the keyword will be replaced with the bookmarked address. What makes keywords very powerful is that if you add a "%s" at some pllace in your bookmark, that will be replaced by the words you type in after your keywords (and before you press Enter).  


This is how you do it: First go to "Bookmarks->File Bookmark..." This will result in a window popping up where you can specify the name, location (URL), and '''keyword'''. Let's take the Internet Movie Database as an example. The search URL for their database is http://us.imdb.com/find?tt=on;nm=on;mx=20;q= where any words typed after the "q=" will be used in the search. This part is where we want to add text so we place a "%s" after the "q=" when writing the location. This makes the location URL look like this: http://us.imdb.com/find?tt=on;nm=on;mx=20;q=%s.  
This is how you do it: First go to "Bookmarks -> File Bookmark..." This will result in a window popping up where you can specify the name, location (URL), and '''keyword'''. Let's take the Internet Movie Database as an example. The search URL for their database is "http://us.imdb.com/find?tt=on;nm=on;mx=20;q=" where any words typed after the "q=" will be used in the search. This part is where we want to add text so we place a "%s" after the "q=" when writing the location. This makes the location URL look like this: http://us.imdb.com/find?tt=on;nm=on;mx=20;q=%s.  


Now you give it a keyword, let's use "movie". So now we have entered the following:
Now you give it a keyword, let's use "movie". So now we have entered the following:

Revision as of 06:19, 6 April 2004

In Mozilla you can specify keywords for bookmarks. When you type the keyword in to the location bar and hit enter, the keyword will be replaced with the bookmarked address. What makes keywords very powerful is that if you add a "%s" at some pllace in your bookmark, that will be replaced by the words you type in after your keywords (and before you press Enter).

This is how you do it: First go to "Bookmarks -> File Bookmark..." This will result in a window popping up where you can specify the name, location (URL), and keyword. Let's take the Internet Movie Database as an example. The search URL for their database is "http://us.imdb.com/find?tt=on;nm=on;mx=20;q=" where any words typed after the "q=" will be used in the search. This part is where we want to add text so we place a "%s" after the "q=" when writing the location. This makes the location URL look like this: http://us.imdb.com/find?tt=on;nm=on;mx=20;q=%s.

Now you give it a keyword, let's use "movie". So now we have entered the following:

Name: Internet Movie Database
Location: http://us.imdb.com/find?tt=on;nm=on;mx=20;q=%s
Keyword: movie

So the next time you want to check yout the information the Internet Movie Database has on The Nightmare Before Christmas you just type "movie The Nightmare Before Christmas" in to the location bar and just press Enter. Mozilla will then take you to the page the Internet Movie Database's search would give. Just give it a try.

We've also assembled a list of useful keyword searches.