I have a question regarding to JavaScript validation. I am validaing the whenever my scripts runs, it validates but also the action
The return value of the submit handler affects the submission.
onsubmit="return Checkfiles();"
This is basically saying:
form.onsubmit = function () { return Checkfiles(); };