What is the default button type?

后端 未结 3 532
-上瘾入骨i
-上瘾入骨i 2020-11-30 11:07

If I do this:


can I be assured that it will behave the same way across all browsers?

3条回答
  •  再見小時候
    2020-11-30 11:53

    As far as I know the default is "submit" except for IE which default is "button"

    See this for more details


    Edit

    According to the Microsoft Developer Network specification:

    In IE8 Standards mode, the default value is submit. In other compatibility modes and earlier versions of Windows Internet Explorer, the default value is button.

提交回复
热议问题