Solved

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

Posted on 2009-06-29
5
255 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
Comment Utility
<a href="#" onClick="document.getElementsByName('q')[0].value += this.innerHTML + ' '; return false;">Keyword</a>
0
 

Author Comment

by:ilike-centre
Comment Utility
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
Comment Utility
Sorry, I'm not sure what you are asking. Can you clarify?
0
 

Author Comment

by:ilike-centre
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This video teaches users how to migrate an existing Wordpress website to a new domain.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

762 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

7 Experts available now in Live!

Get 1:1 Help Now