logo

New Response

« Return to the main article

You are replying to:

  1. 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']);"

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: