Latest web development tutorials

HTML DOM Button objects

Button Objects

Button object represents a button.

In an HTML document <button> tag appears every time, Button object is created.

In the HTML button element you can add content, such as text or image, which is different from the input buttons (button) type.


Button object attributes.

W3C: W3C standards.

属性 描述 W3C
disabled 设置或返回是否禁用按钮。 Yes
form 返回对包含按钮的表单的引用。 Yes
name 设置或返回按钮的名称。 Yes
type 返回按钮的表单类型。 Yes
value 设置或返回显示在按钮上的文本。 Yes

Standard properties and events

Button object also supports the standard attributes and events .