copia e incolla

codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        
        <title>xhtml 1.0</title>
        
        <script type="text/javascript">
        // <![CDATA[
        
        function googleSearch() {
        
          var keywords = document.getElementById('kwords').value; 
          keywords = keywords.replace(/(\w)\s+(\w)/, function ($0, $1, $2) { return $1+'+'+$2}) ;

        
          var strSearch;
          strSearch = "http://www.google.it/search?hl=it&q=" + keywords;
          strSearch += "+site%3Apippo.com&btnG=Cerca+con+Google&meta=";
        
          window.open(strSearch, '', '');
          
        }
        
        // ]]>
        </script>
        
    </head>

<body>

  <form action="#" onsubmit="googleSearch(); return false;">
  <input type="text" size="40" id="kwords" />
  <input type="submit" value="cerca" />
  </form>

<body>
</html>
ciao
-Fab-