Solved

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

Posted on 2009-06-29
5
258 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

785 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