0
   

Can any one provide me with a Google search box for difinition in HTML?

 
 
Reply Thu 5 Mar, 2009 09:27 am
I am trying to add a Google search to my website, I do not need normal search, what I am looking for is a definition search, you put the word and Google will define it for you. I need that in HTML format. Also if you have any HTML for Google I will be glad to see that. Thank you
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 2,706 • Replies: 4
No top replies

 
View best answer, chosen by ammaryameen
BumbleBeeBoogie
 
  0  
Reply Thu 5 Mar, 2009 09:31 am
@ammaryameen,
Just enter HTML format:

http://en.wikipedia.org/wiki/HTML
0 Replies
 
Robert Gentel
  Selected Answer
 
  2  
Reply Thu 5 Mar, 2009 12:37 pm
Here you go, it uses a JavaScript onsubmit to prepend the define operator to the query.

<form action="http://www.google.com/search" onsubmit="this['q'].value='define: ' + this['q'].value" name="f"><input name="hl" value="en" type="hidden"><input autocomplete="off" maxlength="2048" name="q" size="55" title="Google Search" value=""><input name="btnG" value="Define" type="submit"><input value="f" name="aq" type="hidden"><input value="" name="oq" type="hidden"></form>
ammaryameen
 
  1  
Reply Tue 10 Mar, 2009 08:11 am
@Robert Gentel,
Thank you so much, exactly what I was looking for.

Would you provide me with any other Google's search like, search PDF, Excel.... and search a key word in specific site.........

Thank you,
Robert Gentel
 
  1  
Reply Tue 10 Mar, 2009 11:52 am
@ammaryameen,
Just change this part of the code to prepend whatever operator you want:

Code:onsubmit="this['q'].value='define: ' + this['q'].value"


Change 'define: ' to 'site:site.com ' for a specific site, 'filetype:pdf ' for pdf etc.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Can any one provide me with a Google search box for difinition in HTML?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.05 seconds on 07/27/2024 at 07:13:24