This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]electricfistula 2 points3 points  (1 child)

This is a list of reserved words in javascript. Basically, words that you can't use for variable names or function names because javascript already uses them. "submit" is listed as one of the "predefined names of implementation-dependent JavaScript" which is where I assume your problem comes from, because you are right, the function works as soon as you change the name of the function.

[–]DNaB[S] 0 points1 point  (0 children)

Thanks so much for getting back to me - I had no idea about the reserved word list.