If you’re looking for a way for visitors to search your website but don’t want it to be fancy or go to the effort of creating a Google Custom Search, you can easily implement a form to search Google but only show results from your site. Simply copy the following code where you want the search form to appear. Remember to replace example.com with the URL of your site.
<form action="http://www.google.com/search" method="get"> <input type="hidden" name="q" value="site:http://example.com"> <input type="text" name="q" alt="search"> <input type="submit" value="Search"> </form>
And that’s about it! Not very complicated, but perfect if you want a simple, no-fuss way for visitors to search a site you’ve created.