Onsubmit function called submit

前端 未结 1 1467
无人及你
无人及你 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)
提交回复
热议问题