How to create a search for your web page or blog

Updated: 05/05/2017 by Computer Hope

Search iconTip: 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="https://www.google.com/webhp">
<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 logo"></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 domain and website allows you to use Google to search your site. Additional information and terms of service can be found in this Google Developers document.

Example

Google search
WWW Computer Hope

Additional information

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