Creating simple search for your web page

SearchTip: Consider creating a Google Custom Search Engine 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 web page that only searches 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 website allows you to use Google to search your own site. Additional information and terms of service can be found on this Google link.

Example

Google
WWW Computer Hope

Additional information

  • See our search engine definition for further information on this term and related links and information.