Onsubmit function called submit

前端 未结 1 1456
无人及你
无人及你 2020-12-22 07:19

I am wondering why onsubmit global scoped function cannot be called submit. I didnt find any reason.

This doesnt work:

<         


        
相关标签:
1条回答
  • 2020-12-22 07:51

    Here is a list of Javascript's reserved words. As you can see, submit is one of them !

    0 讨论(0)
提交回复
热议问题