: Hello I was wondering if anyone could tell me where i could get some code to put a search bar on my website nothing fancy, just something that will search my main directory for files that i need any help would be most appreciated.
var keyWords = new Array;
keyWords = 'www.google.com|search,websearch,find';
for (i=0; i < keyWords.length; i++)
if (keyWords[i].indexOf(searchstr) != -1)
location.href = keyWords[i].split('|'); // go to the new location
alert('No matches found');