How to add Google’s Image Search to your website?

Get new articles automatically

I know how to add a Google Search Box to my website, but how can I add the Image Search from Google?
Easy!
Let’s take a look at a standard search url from Google:
http://www.google.com/search?source=ig&hl=en&q=rubarber&btnG=Google+search
Now, let’s strip that one down to right the bare essential:
http://www.google.com/search?q=rubarber
The extra info in the string tells Google which website you come from (source=ig -> iGoogle), what language you speak (hl=en), and what the button says (btnG=Google+zoeken)

Now… If you try an image search on Google, and translate to a “bare essentials url” as we did above, we get:
http://images.google.com/images?q=rubarber
So, to get Google’s Image Search result page, with the results that your website’s visitor is looking for, you actually only need one (1) thing in a form: a textfield, with the name ‘q’, which contains the keywords for which your visitor wants to search images.
Putting this all together in nice and clean HTML this results into this:

< form method="get" action="http://images.google.com/images" >
< input type="text" name="q" / >
< input type="submit" value="Search Google Images" / >
< /form >

Or looking like this:

Now, if you don’t want the result page from Google’s images to open instead of your own website, add the optional attribute target=”_NEW” to the form tag, making it

This way, your results will be shown in a brand new browserwindow. Your users will be able to look at the found images, and still continue surfing at your website.
Give it a try!

Related posts:

  1. Google’s search history  A question that I am often asked...
  2. Important facts about keywords Important facts about keywords Keywords and phrases...
  3. Google Adsense Tips Nr 1. Keywords Your keywords are very...
  4. Website Templates So, you want to get your own...
  5. There’s more inside Google than you think! Always know the right time: Should your...

Get new articles automatically 4 Responses to How to add Google’s Image Search to your website?
  1. Albert
    December 7, 2008 | 4:49 pm

    Nice site! Big thanx to webmaster!u

  2. Albert
    December 7, 2008 | 4:53 pm

    A fantastic site, and brilliant effort. A great piece of work.o

  3. Willem
    December 9, 2008 | 6:38 am

    I enjoy your site very much! THANK YOUn

Trackbacks/Pingbacks
  1. World Design O! » How to add Google’s Image Search to your website?
Leave a Reply


Wanting to leave an <em>phasis on your comment?

CommentLuv Enabled
Trackback URL http://www.icantinternet.org/2008/04/how-to-add-googles-image-search-to-your-website/trackback/

Bad Behavior has blocked 836 access attempts in the last 7 days.