lozina
Lifer
I've got an html page i am trying to debug which has a simple file input form field, like this:
<input type="file" id="theFile" name="theFile">
no special events or anything attached to it
when the page loads if I focus on the text field for this file input to get the cursor blinking inside and press ENTER, it submits the whole page! what's even stranger is if I put just one space in there before pressing ENTER, it does not try to submit the page.
any clue at all why when I focus into a file form field and witohut typign anything, just press ENTER, it submits the page?
Again, no events attached to this form field, and there is no default submit type in the form, the only way to submit should be from a button which calls a function, and the alert I have in there is NOT being triggered!
<input type="file" id="theFile" name="theFile">
no special events or anything attached to it
when the page loads if I focus on the text field for this file input to get the cursor blinking inside and press ENTER, it submits the whole page! what's even stranger is if I put just one space in there before pressing ENTER, it does not try to submit the page.
any clue at all why when I focus into a file form field and witohut typign anything, just press ENTER, it submits the page?
Again, no events attached to this form field, and there is no default submit type in the form, the only way to submit should be from a button which calls a function, and the alert I have in there is NOT being triggered!