Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Google Search Using JavaScript  RSS feed

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,
In my website I want to put one simple TextBox, whatever the key word entered by the user, will be searched in Google and the results will be shown on my Website.

Please help me out!
Thanks!
 
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Google on your site, Google:
google search box on my website
 
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Using response.sendRedirect() you can send the request to any web site out of your web application. But this should be done from your servlet or action class.
If you want to use java script, use



 
Sanket L Shah
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

chets patel wrote:
Using response.sendRedirect() you can send the request to any web site out of your web application. But this should be done from your servlet or action class.
If you want to use java script, use



Hi Chats,
I think you have misunderstood the question.
I want the result of google serarch on my Website.
Using window.location it will jump to that location. I mean it will go to given URL.
Same with response.sendRedirect() , It will also redirect to some other page.

Thanks!
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google Search API
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!