This page has been flagged with the following issues:
The button element (<button>) defines a clickable button.
Inside a <button> element you can put content, like text or images. Always specify the type attribute for a <button> element. Different browsers use different default types for the <button> element.
<button name="button">Click me</button>
Internet Explorer historically has had problems with the button element, especially when used in conjunction with type="submit".
The default value of the type attribute depends on the current document compatibility mode. The default value is
submit. In other compatibility modes the default value is
When the BUTTON element is submitted in a form, the value depends on the current document compatibility mode.
Windows Internet Explorer 8 and later. The default value of the type attribute depends on the current document compatibility mode. In IE8 Standards mode, the default value is
submit. In other compatibility modes and earlier versions of Windows Internet Explorer, the default value is
Internet Explorer 8 and later. When the BUTTON element is submitted in a form, the value depends on the current document compatibility mode. In IE8 mode, the value attribute is submitted. In other document modes and earlier versions of Internet Explorer, the innerText value is submitted.
Build date: 7/24/2012
- HTML 4.01 Specification, Section 17.5
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.8
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari|
|Basic Support||Supported (when?)||Supported (when?)||Supported (when?)||
|Feature||Android||BlackBerry||Chrome for mobile||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Opera Mini||Safari Mobile|
|Basic Support||Supported (when?)||?||Supported (when?)||?||?||?||?||Supported (when?)|
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]