How to create a search for your web page or blog

Updated: 01/24/2018 by Computer Hope
Search icon

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="">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="">
<IMG SRC="" border="0" ALT="Google logo"></A>
<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="" checked> Computer Hope <br> </font>
<!-- SiteSearch Google -->

Changing the above 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.


Google search
WWW Computer Hope

Additional information