provided by: 
Originally published at Internet.comFour-Tip-Four...
We've set up search URLs and created something that will check the entered text for spaces. Now, we'll do the search.
One last time, it looks like this.
-----------------------------------
Enter the Keyword:
Select the Search Engine(s):
Yahoo
Altavista
WebCrawler
Excite
Lycos
-----------------------------------
Here's the code
-----------------------------------
Since there are five search engines represented, I really only need to show you one section of the function because the other four follow the same format. Here's the top of the function triggered by the button, and the first search, Yahoo!
function search() { var keywords=document.searching.query.value; var search1; var search2; var search3; var search4; var search5; key=wordsplit(keywords); if(document.searching.yahoo.checked) { search1= document.searching.yahoo.value; search1+=key; wind=window.open(search1,"newwindow1","width=700,height=200,scrollbars=yes"); The function traditionally starts with function search() and then the curly bracket.
Next a variable, "keywords", is set and assigned the value of what was written in the text box: document.searching.query.value...
Read article at Internet.com site