View Full Version : Google Search Box

09-15-2011, 11:03 PM
Hi all,

Wondering if someone could help me with this, I have an "off the shelf" website and there are a few bits that have me puzzled.

There is a 'built in' search box and i want to activate it with a google search, showing the results from my site.

Any clues what else the following code needs please?


<form action="http://www.google.com/search" id="search-form">
<div class="wrapper">
<input type="text" value="Searching ..." onBlur="if(this.value=='') this.value='Searching ...'" onFocus="if(this.value =='Searching ...' ) this.value=''" />
<input type="submit" value="" id="search-submit">

09-15-2011, 11:05 PM

09-15-2011, 11:24 PM
Apostropartheid thanks for your reply, I understand that there are a number of "generic" search type tools, however the layout of what I already have is particually nice which is why I would prefer to use the code I have as opposed to inserting a Google Box in place of it.

As it stands when I type anything into the seach box, it ignores what I have typed and returns the page http://www.google.com/webhp in all cases.

Whats already there is close, but needless to say theres something important missing.