I am using javascript to detect if a field is left blank if (Col1.value == ""){return false}else{return confirm("Are you sure you want to add the following table? \n" + CheckTbl.value);} and if the form is left blank the form doesn't submit, but if I type a space in the field and submit the form it submits. How can I fix this issue?