Search | Directories | Reference Tools
UW Home > UWIN > Computing and Networking > Web > Web Publishing 

Creating a Google Search Page For Your Site

About Google Search Pages

You can create a Google search page for any site hosted on a UW Web server. Be aware, however, that Google's indexing is neither immediate nor scheduled: new Web pages will not show up in your search results right away. To try to shorten your waiting time, you have the option of submitting a site to Google for indexing.

Instructions

To create a search page, copy and paste the following into any new or existing HTML document:

<center>
<form method=get action=http://www.google.com/univ/washington>
<table bgcolor=#ffffff cellspacing=0 border=0>
  <tr valign=middle>
    <td>
      <font face=arial size=+1>Search this site</font><br>
      <input type=text name=q size=31 maxlength=255 value="">
      <input type=hidden name=hq value="site:host.washington.edu/accountname">
      <input type="hidden" name="site" value="search">
      <input type="hidden" name="hl" value="en">
      <input type="hidden" name="lr" value="">
      <input type="hidden" name="safe" value="off"><br>
    </td>
  </tr>
  <tr valign=middle align=center>
    <td>
       <a href=http://www.google.com/><img src="http://www.google.com/logos/Logo_PoweredBy_25wht.gif"
	width=82 height=30 border=0 alt=Google align=center></a>  
       <input type=submit name=sa value="Search">
    </td>
  </tr>
</table>
</form>
</center>

Replace host with the Web server on which your site resides, and accountname with the UW NetID associated with your account. For help with HTML, see Writing Your Own Web Pages in HTML.