Many times people need a web search on their site (not a site-search, but a search engine for Google, Yahoo, Excite, etc...)
Well, this little script does a search for Google, and opens the results in a new window...
Pretty neat huh??
[color red]
<html>
<head>
<SCRIPT LANGUAGE=JAVASCRIPT>
function googleSearch() {
if (document.doingasearch.searchbox.value!="") {
window.open("http://www.google.com/search?hl=en&q=" + document.doingasearch.searchbox.value) ;
}
else {
alert("Please enter something to search.")
}
}
</SCRIPT>
</head>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.