Results 1 to 2 of 2

Thread: javascript link question

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default javascript link question

    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!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    HTML Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •