In IE browser, the button with the "button" Property of "input tag type" is the same and does not perform any operations on the form.
However, in W3C browsers, such as Firefox, You need to note that the button label button will submit the form, and the type attribute of the input label is "button" will not perform any operation on the form.
Dear Lord, since I have not carefully read the W3C specification, nnd ran the onsubmit event during the Firefox test today. After half a day, it turned out to be different in IE and Firefox, dizzy...
TestCodeAs shown in the following figure, no response is returned when two buttons are clicked in IE. However, in W3C browsers such as Firefox and Google Chrome, clicking the button tag will execute the onsubmit event.
<! Doctype html > < Html > < Head > < Title > Button, input type = button in IE, W3C, Firefox browser difference </ Title > < Script Type = "Text/JavaScript" > Function CK () {alert ( ' Form submission judgment code! ' ); Return False ;} </ Script > </ Head > < Body > < Form Onsubmit = "Return CK ()" Method = "Post" > < Input Type = "Button" Value = "Button with input tag type as button" /> < Button > Button</ Button > </ Form > </ Body > </ Html >