How to add google search in Website

Status
Not open for further replies.

sinha.kajal

Active Member
65
2013
1
10
I am creating a website in html . I want to add a search option in website. I want that after click on search it should go on google search page with my websites link only.

How can i do this? Please suggest.

Thanks
 
2 comments
try this code

<div class="widget"> <div class="textwidget"><form action="http://www.google.com" id="cse-search-box">
<div>
<input name="cx" value="partner-pub-9086267384101202:8132844973" type="hidden">
<input name="ie" value="UTF-8" type="hidden">
<input name="q" size="25" style="border: 1px solid rgb(126, 157, 185); padding: 2px; background: rgb(255, 255, 255) url(&quot;https://www.google.com/cse/static/images/1x/googlelogo_lightgrey_46x16dp.png&quot;) no-repeat scroll left center; text-indent: 48px;" placeholder="search" type="text">
<input name="sa" value="Google Search" type="submit">
</div>
<input name="siteurl" value="dessupersnanas.com/" type="hidden"><input name="ref" type="hidden"><input name="ss" type="hidden"></form>
 
Thanks persfsom

I will try this code

__________________
Added after 3 Days:

Thanks persfsom

It's work for me
 
Last edited:
Status
Not open for further replies.
Back
Top