How to implement google custom search your website:
<form action=”http://www.google.com/search” class=”searchform” method=”get”
name=”searchform” target=”_blank”>
<input name=”sitesearch” type=”hidden” value=”www.sanwebcorner.com”>
<input autocomplete=”on” class=”form-controls search” name=”q”
placeholder=”Search in sanwebcorner.com” required=”required” type=”text”>
<button class=”button” type=”submit”>Search</button>
</form>
But the above code display the search result in the google search engine. If you want to display the search result with in the website you should follow the below steps. This shows the search result in popup window.
Step1: Open https://cse.google.com/cse/ and Login Google Account.
Step5: Click Receive Code Button you can get the below script , you should add this code wherever you want the search box




