W3Schools.com

HTML DOM Button Object


Button Object

The Button object represents a push button.

For each <button> tag in an HTML document, a Button object is created.

Inside an HTML button element you can put content, like text or images. This is the difference between this element and buttons created with the input element.

Note: The Button object can also use the properties/methods of:


Button Object Properties

W3C: W3C Standard.

Property Description W3C
disabled Sets or returns whether a button is disabled, or not Yes
form Returns a reference to the form that contains a button Yes
name Sets or returns the value of the name attribute of a button Yes
type Sets or returns the type of a button Yes
value Sets or returns the value of the value attribute of a button Yes

Standard Properties and Events

The Button object also supports the standard properties and events.



WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE