A Better Google Site Search In HTML / Javascript

IT Support Forum Forums Development HTML, CSS & Javascript A Better Google Site Search In HTML / Javascript

Viewing 0 reply threads
  • Author
    • #2353

      Here’s a nice javascript / HTML based Google Search box that you can put on your website. It’s much better than Google’s site search box because it uses the full power of Google to search, instead of the cut down rubbish search that comes with Google’s search box that’s full of adverts and doesn’t return very good results.

      <script type="text/javascript">
      function google()
      var str=document.getElementById('googlebox').value;
      str="http://www.google.com/search?hl=en&source=hp&q=site:itsupportforum.net " + str + "&aq=f&oq=&aqi=";
      var replaced=str.replace(" ","+");
      <input id="googlebox" type="text" value="Google" />
      <input type="button" value="Go" />

Viewing 0 reply threads
  • You must be logged in to reply to this topic.