1 2 3 4 5 6 7 8 9
function uploadDG(form) { if ( form.filename.value.length == 0) { alert('Must select a file.'); return false; } else { form.submit(); return; } }