T
tshad
I have the following page I found on the net, but it doesn't work. I get an
error on page.
******************************************************************
<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>
<body bgcolor="#FFFFFF">
<FORM name="doingasearch" id="doingasearch">
Google
<INPUT name=searchbox type=text size=20>
<INPUT type="button" value="Search" onclick="return googleSearch();">
</FORM>
</body>
</html>
*************************************************************************************
I thought maybe the semicolon in the window.open line was the problem but it
wasn't.
Can anyone see the problem with this?
Thanks,
Tom
error on page.
******************************************************************
<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>
<body bgcolor="#FFFFFF">
<FORM name="doingasearch" id="doingasearch">
<INPUT name=searchbox type=text size=20>
<INPUT type="button" value="Search" onclick="return googleSearch();">
</FORM>
</body>
</html>
*************************************************************************************
I thought maybe the semicolon in the window.open line was the problem but it
wasn't.
Can anyone see the problem with this?
Thanks,
Tom