title: Add Google search in web page
body: <p>I'd like to add search to a static site. The simplest way is to simply query Google by appending "site:www.acme.com" to the actual query so that Google will limit search to that site.</p>
  
  <p>Ideally, I'd like to do this in the browser, to avoid having to install PHP on the server. Using a form, I don't know how to append the search items:</p>
  
  <pre><code>&lt;form action=http://www.google.com?q="site:www.acme.com+..."&gt;
  &lt;input type=text id=search_item&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Does someone know of a client-side solution? Should I use some JavaScript for this?</p>
  
  <p>Thank you.</p>
  
  <hr>
  
  <p>Edit: When using "method=get" and "input name=q value="site:www.acme.com "", the browser will indeed call Google with "www.google.com?q="site:www.acme.com some item", but I'd rather avoid presetting the input box with "site:www.acme.com" because users will find this odd and might remove it.</p>