Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is pretty common. I used to name my submit buttons "submit", but when I started using Javascript to do the submission, I found that form.submit() didn't work everywhere. The reason is because form fields are accessed by form.field_name, and so the field data replaces the function stored in the "submit" slot. sigh.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: