« Return to the main article
Hi All,
Great little function.
I had a small problem with this still submiting the form no matter what the outcome. I needed to 'return' the function for it to know that I'd stopped the form submit.
onClick="return TestFileType(this.form.uploadfile.value, ['gif', 'jpg', 'png', 'jpeg']);"
Hi All,
Great little function.
I had a small problem with this still submiting the form no matter what the outcome. I needed to 'return' the function for it to know that I'd stopped the form submit.
onClick="return TestFileType(this.form.uploadfile.value, ['gif', 'jpg', 'png', 'jpeg']);"