i have this
<script language="javascript">
function doFoo(){
var foo=prompt("\"Please Enter Tracking Number\""
;
if(foo != null && foo != " "
{
document.myForm.myField.value = foo;
document.myForm.submit();
}
}
</script>
it is submiting the form no matter what if the form is blank i do not want it to submit the form
<script language="javascript">
function doFoo(){
var foo=prompt("\"Please Enter Tracking Number\""
if(foo != null && foo != " "
document.myForm.myField.value = foo;
document.myForm.submit();
}
}
</script>
it is submiting the form no matter what if the form is blank i do not want it to submit the form