Creating simple search for your web page.
Issue
Creating simple search for your web page.
Solution
In addition to doing the below Google SiteSearch option users should also consider creating a Google Custom search
for more options and features.
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
Additional information
- See the search engine definition for further information about Internet search engines and related links and information.
