Solved

Google Search - how to create a script that enters my search terms to my search engine.

Posted on 2009-06-29
5
256 Views
Last Modified: 2013-12-09
I want to know how to do the follow.

you click on a predertmined word "glass" (for example). Upon clicking on this word it then imputs set term in you my google search box on my website.

my website is www.epictorrents.com - i have a fully configured search engine, i was to help people by creating a sort of cloudbubble of popular term - that they can in turn click on these works and it automatically this term in to my search engine.

Thank you for reading this question. applogise if i seemed to have repeated my self
0
Comment
Question by:ilike-centre
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:dlastlee
ID: 24736279
<a href="#" onClick="document.getElementsByName('q')[0].value += this.innerHTML + ' '; return false;">Keyword</a>
0
 

Author Comment

by:ilike-centre
ID: 24738979
WOW! thank you so much!

On final thing how do you write the code so you click and it adds then enters the info??

either way! wOW! you have nailed it. i am over over joyed thank you.
0
 
LVL 3

Expert Comment

by:dlastlee
ID: 24739590
Sorry, I'm not sure what you are asking. Can you clarify?
0
 

Author Comment

by:ilike-centre
ID: 24739985
yes, as you have created the ode that enter the word "glass" in the search engine, how do you take that the next step and have it do the function of hit enter to get the results.

because atm it puts there word in there perefectly, would be superb if it would do the complete task by getting the return result - just a thought.
thank you again.
0
 
LVL 3

Accepted Solution

by:
dlastlee earned 500 total points
ID: 24740395
Oh, you can just skip the above step then and just redirect to the term:
<a href="#" onClick="window.location = 'http://www.epictorrents.com/?cx=partner-pub-2008479706652190%3Amp3mmi-92mf&cof=FORID%3A11&ie=ISO-8859-1&sa=Search&q=' + this.innerHTML">axxo</a>
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now