Mobile app version of vmapp.org
Login or Join
Bryan171

: How to add a Google Search Box to search results? I would like to add a search box to the Google search results, just like Stack Overflow seen here. I have been trying for several days but

@Bryan171

Posted in: #Google #GoogleSearch #SearchResults

I would like to add a search box to the Google search results, just like Stack Overflow seen here. I have been trying for several days but no luck. How can I add this to my own site?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen354

Here's the code for google search.

<!-- Use of this code assumes agreement with the Google Custom Search Terms of Service. -->
<!-- The terms of service are available at www.google.com//cse/docs/tos.html -->
<form name="cse" id="searchbox_demo" action="https://www.google.com/cse">
<input type="hidden" name="cref" value="" />
<input type="hidden" name="ie" value="utf-8" />
<input type="hidden" name="hl" value="" />
<input name="q" type="text" size="40" />
<input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript" src="https%3A%2F%2Fcse.google.com%2Fcse/tools/onthefly?form=searchbox_demo&lang="></script>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme