Menu DaniWeb
Log In Sign Up
  • Read
  • Contribute
  • Meet
  1. Home
  2. Digital Media Forum
  3. UI / UX Design Forum
  4. Code Snippet Repository
  5. Reusable Code Snippet

Google search bar

18 Years Ago Hosmer23 -1 Tallied Votes 380 Views Share

Put your very own Google search bar on your web page.

web-design
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="Logo_40wht.gif" 
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
About the Author
Member Avatar for Hosmer23
Hosmer23 -4 Light Poster

Marketing, Advertising, and Store-Front Manager for DraconusIT.net

Member Avatar for atoerk
atoerk 0 Newbie Poster
16 Years Ago

hi, i added this code on my live space - it deos work but all u can see is an "X" with google written next to it.!
can we do it in a way that google logo is seen instead of the red colored "X" sign and also is it possible that when we click on it - the google web page is opened in a seperate tab instead of the same tab..

cheers

Member Avatar for 5th6hh6
5th6hh6 0 Newbie Poster
15 Years Ago

that good image needs to be saved in the same folder where that htmp page has been saved, changing the image src

Edited 15 Years Ago by 5th6hh6 because: n/a
Member Avatar for saqib1900
saqib1900 0 Newbie Poster
13 Years Ago

thanks for this code, this code is appear at the centre of the screen can we position this code on right side?

Member Avatar for alexpja
alexpja 0 Newbie Poster
13 Years Ago

@saqib1900

Remove <center> and </center>

Member Avatar for ramisgill
ramisgill 0 Newbie Poster
13 Years Ago

Thanks for this code
Greate information

Reply to this topic
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.

Sign Up — It's Free!
Related Topics
  • Member Avatar Please help with Browser Compatibility Gallery Script!!!!!PLEASE 2
  • Member Avatar keeping text line-height consistancy 2
  • Member Avatar Flash 5, MX, or 2004? 7
  • Member Avatar Need help with table problem, urgent. 8
  • Member Avatar Ideas and suggestion for my roject : Director 11
  • Member Avatar What are the steps to design a website? 6
  • Member Avatar Email Link 2
  • Member Avatar Display the live time. 1
  • Member Avatar PayPal IPN for Digital Goods 35
  • Member Avatar Which One To Opt For? UI or UX -You’re Asking the Wrong Question! 0
  • Member Avatar Bad CSS only for Firefox & Internet Explorer. 1
  • Member Avatar Safari date input 4
  • Member Avatar how to make border around page with multicolor ? 2
  • Member Avatar Positioning Switch on Validate Error 1
  • Member Avatar Mobile version of site is shifting DIV downward. Any fix? 1
  • Member Avatar CSS ERROR? 3
  • Member Avatar Browers show code instead of the page itself 3
  • Member Avatar Image behind text 4
  • Member Avatar How to design like this picture 9
  • Member Avatar How do i stack backgrounds on top of each other ? 4
Not what you need?

Reach out to all the awesome people in our ui / ux design community by starting your own topic. We equally welcome both specific questions as well as open-ended discussions.

Start New Topic
Topics Feed
Reply to this Topic
Edit Preview

Share Post

Insert Code Block

  • Forums
  • Forum Index
  • Hardware/Software
    • Recommended Topics
  • Programming
    • Recommended Topics
  • Digital Media
    • Recommended Topics
  • Community Center
    • Recommended Topics
  • Latest Content
  • Newest Topics
  • Latest Topics
  • Latest Posts
  • Latest Comments
  • Top Tags
  • Topics Feed
  • Social
  • Top Members
  • Meet People
  • Community Functions
  • DaniWeb Premium
  • Newsletter Archive
  • Markdown Syntax
  • Community Rules
  • Developer APIs
  • Connect API
  • Forum API Docs
  • Tools
  • SEO Backlink Checker
  • Legal
  • Terms of Service
  • Privacy Policy
  • FAQ
  • About Us
  • Advertise
  • Contact Us
© 2025 DaniWeb® LLC