Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 142955

Re: Search engine for our website

$
0
0

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.


Viewing all articles
Browse latest Browse all 142955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>