Link to home
Start Free TrialLog in
Avatar of ilike-centre
ilike-centreFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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

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
Avatar of dlastlee
dlastlee
Flag of United States of America image

<a href="#" onClick="document.getElementsByName('q')[0].value += this.innerHTML + ' '; return false;">Keyword</a>
Avatar of ilike-centre

ASKER

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.
Sorry, I'm not sure what you are asking. Can you clarify?
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.
ASKER CERTIFIED SOLUTION
Avatar of dlastlee
dlastlee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial