[an error occurred while processing this directive]
|Linking to Search Results|
If you know HTML, it's relatively easy to make links to Google's search results. Following each link in the examples below is the code that produces it.
Note: The URL — that is, the text shown in Italics here: href="http://URL-GOES-HERE" — must be valid. For instance:
For example, the query [ "a song for you" ] would be encoded in a URL as http://www.google.com/search?q=%22a+song+for+you%22, where each quote (") is replaced by %22.
The easiest way to find the correct encoding is to type your query into a Google Search box — run the search and look at the resulting URL in your web browser's address box (which is usually in the toolbar at the top of the window). Then copy and paste the parts you need from the URL into your HTML code.
With AdSense for Search, you can easily create a revenue stream at the same time as provide a Google search box like the following.
Fill the search box with a query by specifying a value the attribute "value", which AdSense for Search initializes to the null string ("").
Note: If you fill the search box with a query, Google may not share revenue with you.
Note: AdSense for Search centers the search box on the page while AdSense for WebSearch+SiteSearch doesn't. Of course, you can modify the AdSense code to place the search box wherever you want on the page.
Solutions page in the Appendix.
This page was last modified on Thursday November 16, 2006.
|[Home] [Intro] [Contents] [Print] [Favorites] [Query Input] [Understanding Results] [Special Tools] [Developing a Website] [Appendix]|
For Google tips, tricks, & how Google works, visit
Google Guide at www.GoogleGuide.com.|
By Nancy Blachman and Jerry Peek who aren't Google employees. For permission to copy
& create derivative works, visit Google Guide's Creative Commons License webpage.