/* This script and many more are available free online at The JavaScript Source :: http://javascript.internet.com Created by: Ivan Iraola :: http://www.cybexmag.com */ function DoSearch() { var Flag = 0; if (document.ToolBox.SearchOption[0].checked==true) { var Flag = 1; var Engine = document.ToolBox.SearchOption[0].value; var Query = document.ToolBox.SearchBox.value; var locName = "http://www.google.com/search?hl=en&q="; if (Query == "") { alert("Please enter a search term"); return; } location.href = (locName + Query) } if (document.ToolBox.SearchOption[1].checked==true) { var Flag = 1; var Engine = document.ToolBox.SearchOption[1].value; var Query = document.ToolBox.SearchBox.value; var locName = "http://search.yahoo.com/search?p="; if (Query == "") { alert("Please enter a search term"); return; } location.href = (locName + Query) } if (document.ToolBox.SearchOption[2].checked==true) { var Flag = 1; var Engine = document.ToolBox.SearchOption[2].value; var Query = document.ToolBox.SearchBox.value; if (Query == "") { alert("Please enter a search term"); return; } var searchPage = ""; searchPage += "\n"; searchPage += ""; searchPage += "\n"; searchPage += ""; searchPage += "\n"; searchPage += ""; searchPage += "\n"; searchPage += ""; searchPage += "\n"; searchPage += ""; document.write(searchPage); } if (Flag == 0) { alert("Please select a search engine"); } }
Enter search term(s):
Google Yahoo Both

Free JavaScripts provided
by The JavaScript Source