OK, so I have a simple search form (just a text input box and a submit button). When I click the submit button, I'm using a script to create a whole bunch of links based off the input of the text box. For example
What I want to be able to do is launch a window which has these links listed saying something like:Code:function searchit(){ var query = document.form.query.value; var url1 = "google.com?q="+query; var url2 = "whatever.com?search="+query; }
Click here for Google results
Click here for Whatever results
and have that text link to the urls that the javascript has created.
Can I just do something like:
Can anyone help me with this?Code:<a href='url1'>Click here for Google results</a>




Reply With Quote