Search This Blog

JW.ORG and Watchtower Library in one search box:

Sunday, June 1, 2014

How to Make a Search Box That Only Searches JW.ORG

(In addition to doing the below Google SiteSearch option, users may 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 web page that will only search the pages on a particular site by using the below code.
<!-- SiteSearch Google -->

<br />
<form action="" method="get">
<input name="ie" type="hidden" value="UTF-8" />
<input name="oe" type="hidden" value="UTF-8" />
<br />
<br />
<table bgcolor="#FFFFFF"><tbody>
<tr><td></td><td><input maxlength="255" name="q" size="31" type="text" value="" />
<input name="btnG" type="submit" value="Google Search" />

<input name="domains" type="hidden" value="JW.ORG" /><br />
<input name="sitesearch" type="radio" value="" /><input checked="" name="sitesearch" type="radio" value="" />JW.ORG</td>

<!-- SiteSearch Google --></tr>
Changing the above and JW.ORG 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.