I'm using a Google search bar on a current project. And it works very well now that the site is fully indexed by Google. But it takes you to a Google results page which rantingrich100 was trying to avoid. For anyone else who might be interested, this is the code I use:
<script>
//Enter domain of site to search.
var domainroot="www.yoursite.com"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
<form class="search" action="http://www.google.com/search" method="get" onSubmit="Gsitesearch(this)">
<input name="q" type="hidden" />
<input name="qfront" class="searchField" type="search" required title="Type a search word or phrase" placeholder="Search this site"/>
<input type="submit" class="search-button" value="Find" />
</form>
Nancy O.