Reference number: CH000077
Creating simple search for your web page.
Issue:Creating simple search for your web page.
Solution:Today many of the large search engines allow you to use their
index to create a customized search for your page. For example, you
can add a Google search to your webpage that will only search the
pages on your site by using the below code.
<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="Computer
Hope"><br><input
type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch
value="computerhope.com" checked>
Computer Hope <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->
Changing the above computerhope.com
and Computer Hope references to your own
domain and web site will allow you to use Google to search your own
site. Additional information and terms of service can be found on
this Google link.
Example:
|