The HTMLButtonElement interface provides properties and methods
the regular web.dom.HTMLElement
interface it also has available
it by inheritance) for manipulating <button>
elements.
The HTMLButtonElement interface provides properties and methods the regular `web.dom.HTMLElement` interface it also has available it by inheritance) for manipulating `<button>` elements.
(access-key this)
Property.
Is a DOMString indicating the single-character keyboard key to access to the button.
Property. Is a DOMString indicating the single-character keyboard key to access to the button.
(autofocus this)
Property.
Is a Boolean indicating whether or not the control should have focus when the page loads, unless the user overrides it, for by typing in a different control. Only one form-associated element a document can have this attribute specified.
Property. Is a Boolean indicating whether or not the control should have focus when the page loads, unless the user overrides it, for by typing in a different control. Only one form-associated element a document can have this attribute specified.
(disabled this)
Property.
Is a Boolean indicating whether or not the control is disabled, that it does not accept any clicks.
Property. Is a Boolean indicating whether or not the control is disabled, that it does not accept any clicks.
(form this)
Property.
Is a HTMLFormElement reflecting the form that this button is with. If the button is a descendant of a form element, then this is the ID of that form element. If the button is not a descendant of a form element, then the can be the ID of any form element in the same document it is to, or the null value if none matches.
Property. Is a HTMLFormElement reflecting the form that this button is with. If the button is a descendant of a form element, then this is the ID of that form element. If the button is not a descendant of a form element, then the can be the ID of any form element in the same document it is to, or the null value if none matches.
(form-action this)
Property.
Is a DOMString reflecting the URI of a resource that processes submitted by the button. If specified, this attribute overrides action attribute of the <form> element that owns this element.
Property. Is a DOMString reflecting the URI of a resource that processes submitted by the button. If specified, this attribute overrides action attribute of the <form> element that owns this element.
(form-enctype this)
Property.
Is a DOMString reflecting the type of content that is used to the form to the server. If specified, this attribute overrides enctype attribute of the <form> element that owns this element.
Property. Is a DOMString reflecting the type of content that is used to the form to the server. If specified, this attribute overrides enctype attribute of the <form> element that owns this element.
(form-method this)
Property.
Is a DOMString reflecting the HTTP method that the browser uses submit the form. If specified, this attribute overrides the method of the <form> element that owns this element.
Property. Is a DOMString reflecting the HTTP method that the browser uses submit the form. If specified, this attribute overrides the method of the <form> element that owns this element.
(form-no-validate this)
Property.
Is a Boolean indicating that the form is not to be validated it is submitted. If specified, this attribute overrides the novalidate of the <form> element that owns this element.
Property. Is a Boolean indicating that the form is not to be validated it is submitted. If specified, this attribute overrides the novalidate of the <form> element that owns this element.
(form-target this)
Property.
Is a DOMString reflecting a name or keyword indicating where display the response that is received after submitting the form. specified, this attribute overrides the target attribute of the element that owns this element.
Property. Is a DOMString reflecting a name or keyword indicating where display the response that is received after submitting the form. specified, this attribute overrides the target attribute of the element that owns this element.
(labels this)
Property.
[Read Only]
The HTMLButtonElement.labels read-only property returns a web.NodeList
the <label>
elements associated with the <button>
element.
var labelElements = button.labels;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/labels
Property. [Read Only] The HTMLButtonElement.labels read-only property returns a `web.NodeList` the `<label>` elements associated with the `<button>` element. `var labelElements = button.labels;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/labels`
(menu this)
Property.
Is a HTMLMenuElement representing the menu element to be displayed the button is clicked and is of type="menu".
Property. Is a HTMLMenuElement representing the menu element to be displayed the button is clicked and is of type="menu".
(name this)
Property.
Is a DOMString representing the name of the object when submitted a form. HTML5 If specified, it must not be the empty string.
Property. Is a DOMString representing the name of the object when submitted a form. HTML5 If specified, it must not be the empty string.
(set-access-key! this val)
Property.
Is a DOMString indicating the single-character keyboard key to access to the button.
Property. Is a DOMString indicating the single-character keyboard key to access to the button.
(set-autofocus! this val)
Property.
Is a Boolean indicating whether or not the control should have focus when the page loads, unless the user overrides it, for by typing in a different control. Only one form-associated element a document can have this attribute specified.
Property. Is a Boolean indicating whether or not the control should have focus when the page loads, unless the user overrides it, for by typing in a different control. Only one form-associated element a document can have this attribute specified.
(set-disabled! this val)
Property.
Is a Boolean indicating whether or not the control is disabled, that it does not accept any clicks.
Property. Is a Boolean indicating whether or not the control is disabled, that it does not accept any clicks.
(set-form! this val)
Property.
Is a HTMLFormElement reflecting the form that this button is with. If the button is a descendant of a form element, then this is the ID of that form element. If the button is not a descendant of a form element, then the can be the ID of any form element in the same document it is to, or the null value if none matches.
Property. Is a HTMLFormElement reflecting the form that this button is with. If the button is a descendant of a form element, then this is the ID of that form element. If the button is not a descendant of a form element, then the can be the ID of any form element in the same document it is to, or the null value if none matches.
(set-form-action! this val)
Property.
Is a DOMString reflecting the URI of a resource that processes submitted by the button. If specified, this attribute overrides action attribute of the <form> element that owns this element.
Property. Is a DOMString reflecting the URI of a resource that processes submitted by the button. If specified, this attribute overrides action attribute of the <form> element that owns this element.
(set-form-enctype! this val)
Property.
Is a DOMString reflecting the type of content that is used to the form to the server. If specified, this attribute overrides enctype attribute of the <form> element that owns this element.
Property. Is a DOMString reflecting the type of content that is used to the form to the server. If specified, this attribute overrides enctype attribute of the <form> element that owns this element.
(set-form-method! this val)
Property.
Is a DOMString reflecting the HTTP method that the browser uses submit the form. If specified, this attribute overrides the method of the <form> element that owns this element.
Property. Is a DOMString reflecting the HTTP method that the browser uses submit the form. If specified, this attribute overrides the method of the <form> element that owns this element.
(set-form-no-validate! this val)
Property.
Is a Boolean indicating that the form is not to be validated it is submitted. If specified, this attribute overrides the novalidate of the <form> element that owns this element.
Property. Is a Boolean indicating that the form is not to be validated it is submitted. If specified, this attribute overrides the novalidate of the <form> element that owns this element.
(set-form-target! this val)
Property.
Is a DOMString reflecting a name or keyword indicating where display the response that is received after submitting the form. specified, this attribute overrides the target attribute of the element that owns this element.
Property. Is a DOMString reflecting a name or keyword indicating where display the response that is received after submitting the form. specified, this attribute overrides the target attribute of the element that owns this element.
(set-menu! this val)
Property.
Is a HTMLMenuElement representing the menu element to be displayed the button is clicked and is of type="menu".
Property. Is a HTMLMenuElement representing the menu element to be displayed the button is clicked and is of type="menu".
(set-name! this val)
Property.
Is a DOMString representing the name of the object when submitted a form. HTML5 If specified, it must not be the empty string.
Property. Is a DOMString representing the name of the object when submitted a form. HTML5 If specified, it must not be the empty string.
(set-tab-index! this val)
Property.
Is a long that represents this element's position in the tabbing
Property. Is a long that represents this element's position in the tabbing
(set-type! this val)
Property.
Is a DOMString indicating the behavior of the button. This is enumerated attribute with the following possible values: "submit": The button submits the form. This is the default value the attribute is not specified, HTML5 or if it is dynamically to an empty or invalid value. "reset": The button resets the form. "button": The button does nothing. "menu": The button displays a menu.
Property. Is a DOMString indicating the behavior of the button. This is enumerated attribute with the following possible values: "submit": The button submits the form. This is the default value the attribute is not specified, HTML5 or if it is dynamically to an empty or invalid value. "reset": The button resets the form. "button": The button does nothing. "menu": The button displays a menu.
(set-validation-message! this val)
Property.
Is a DOMString representing the localized message that describes validation constraints that the control does not satisfy (if This attribute is the empty string if the control is not a candidate constraint validation (willValidate is false), or it satisfies constraints.
Property. Is a DOMString representing the localized message that describes validation constraints that the control does not satisfy (if This attribute is the empty string if the control is not a candidate constraint validation (willValidate is false), or it satisfies constraints.
(set-validity! this val)
Property.
Is a ValidityState representing the validity states that this is in.
Property. Is a ValidityState representing the validity states that this is in.
(set-value! this val)
Property.
Is a DOMString representing the current form control value of button.
Property. Is a DOMString representing the current form control value of button.
(set-will-validate! this val)
Property.
Is a Boolean indicating whether the button is a candidate for validation. It is false if any conditions bar it from constraint including: its type property is reset or button; it has a datalist or the disabled property is set to true.
Property. Is a Boolean indicating whether the button is a candidate for validation. It is false if any conditions bar it from constraint including: its type property is reset or button; it has a datalist or the disabled property is set to true.
(tab-index this)
Property.
Is a long that represents this element's position in the tabbing
Property. Is a long that represents this element's position in the tabbing
(type this)
Property.
Is a DOMString indicating the behavior of the button. This is enumerated attribute with the following possible values: "submit": The button submits the form. This is the default value the attribute is not specified, HTML5 or if it is dynamically to an empty or invalid value. "reset": The button resets the form. "button": The button does nothing. "menu": The button displays a menu.
Property. Is a DOMString indicating the behavior of the button. This is enumerated attribute with the following possible values: "submit": The button submits the form. This is the default value the attribute is not specified, HTML5 or if it is dynamically to an empty or invalid value. "reset": The button resets the form. "button": The button does nothing. "menu": The button displays a menu.
(validation-message this)
Property.
Is a DOMString representing the localized message that describes validation constraints that the control does not satisfy (if This attribute is the empty string if the control is not a candidate constraint validation (willValidate is false), or it satisfies constraints.
Property. Is a DOMString representing the localized message that describes validation constraints that the control does not satisfy (if This attribute is the empty string if the control is not a candidate constraint validation (willValidate is false), or it satisfies constraints.
(validity this)
Property.
Is a ValidityState representing the validity states that this is in.
Property. Is a ValidityState representing the validity states that this is in.
(value this)
Property.
Is a DOMString representing the current form control value of button.
Property. Is a DOMString representing the current form control value of button.
(will-validate this)
Property.
Is a Boolean indicating whether the button is a candidate for validation. It is false if any conditions bar it from constraint including: its type property is reset or button; it has a datalist or the disabled property is set to true.
Property. Is a Boolean indicating whether the button is a candidate for validation. It is false if any conditions bar it from constraint including: its type property is reset or button; it has a datalist or the disabled property is set to true.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close