PDA

View Full Version : javascript link question



bdembar
01-25-2007, 05:21 PM
I currently have a web site that is used for my students. I want to put a link to another site that automatically inputs search terms into the search box on the other site. Can I do that with javascript?

Here is the site that I want to link to: http://www.steveweissmusic.com/

I would like my link to, for example, put “bach sonatas and partitas violin” into the search box on this site. Is that possible?

Thanks in advance for the help!

jscheuer1
01-25-2007, 06:09 PM
I'd ask them. For that to be possible, they would have to have a way to do that written into their page via the location.search of the pages address. If they do, you would just need to include your query in the href:


<a href="http://www.steveweissmusic.com/?keyword=bach%20sonatas%20and%20partitas%20violin">Search Bach Sonatas and Partitas for Violin</a>

or some similar sort of thing. But, their site would need some mechanism already in place to receive the query to their form.

And, it is just good web manners to ask, they may not like the idea, if they allow it and do have a mechanism for it, they may require a free or paid license for it, etc.