HTMLButtonElement - Интерфейсы веб API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

HTMLButtonElement

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..

* Some parts of this feature may have varying levels of support.

>

Интерфейс HTMLButtonElement предоставляет свойства и методы для управления элементами <button> (помимо обычного интерфейса HTMLElement, он также доступен - по наследованию) .

must be a string

Свойства

Наследует свойства от его родителя, HTMLElement.

Methods

Наследует свойства от его родителя, HTMLElement.

Name Return Type Description
checkValidity() Boolean Not supported for button elements.
setCustomValidity(in DOMString error) void Not supported for button elements.

WIth Gecko-based browser, use the :-moz-submit-invalid pseudo-class to style submit buttons based on the validation of a form.

Спецификации

Specification
HTML>
# htmlbuttonelement>

Совместимость с браузерами

Смотрите также

  • HTML element implementing this interface: <button>