Hacker News new | ask | show | jobs
by jessaustin 3234 days ago
The other answers are better, but I've done something like this before:

  <form action="http://www.google.com/search?">
    <input type=text name=q>
    <input type=submit onclick="
      document.forms[0].children.q.value += ' site:mysite.com';
    ">
  </form>