Why do I keep getting this error? The script works, but there is still this error.
Here is the script:
Here is the href
Here is the script:
Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function formval()
{
if (document.form.formfield.value=='')
{
alert("Please enter your search.")
event.returnValue=false;
}
}
var formWin = null;
function openFormWin()
{
if (document.form.formfield.value=='')
{
alert("Please enter your search.")
event.returnValue=false;
}
formWin = open('search.php','formWin','width=555,height=450,scrollbars=yes,left=150,top=100');
if (formWin && !formWin.closed) formWin.focus();
return true;
}
function noenter() {
return !(window.event && window.event.keyCode == 13); }
function schedule()
{
open('schedule.php','Schedule','width=555,height=450,scrollbars=yes,left=150,top=100');
}
//-->
</script>
Here is the href
Code:
href="javascript:formval();openFormWin();document.form.submit();void(0)" alt="Search!"