Table of Contents

Interface IHtmlButtonElement

Namespace
AngleSharp.Html.Dom
Assembly
AngleSharp.dll

Represents the button HTML element.

[DomName("HTMLButtonElement")]
public interface IHtmlButtonElement : IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers, IValidation
Inherited Members
Extension Methods

Properties

Autofocus

Gets or sets the autofocus HTML attribute, which indicates whether the control should have input focus when the page loads.

[DomName("autofocus")]
bool Autofocus { get; set; }

Property Value

bool

Form

Gets the associated HTML form element.

[DomName("form")]
IHtmlFormElement? Form { get; }

Property Value

IHtmlFormElement

FormAction

Gets or sets the URI of a resource that processes information submitted by the button. If specified, this attribute overrides the action attribute of the form element that owns this element.

[DomName("formAction")]
string? FormAction { get; set; }

Property Value

string

FormEncType

Gets or sets the type of content that is used to submit the form to the server. If specified, this attribute overrides the enctype attribute of the form element that owns this element.

[DomName("formEncType")]
string FormEncType { get; set; }

Property Value

string

FormMethod

Gets or sets the HTTP method that the browser uses to submit the form. If specified, this attribute overrides the method attribute of the form element that owns this element.

[DomName("formMethod")]
string FormMethod { get; set; }

Property Value

string

FormNoValidate

Gets or sets that the form is not to be validated when it is submitted. If specified, this attribute overrides the enctype attribute of the form element that owns this element.

[DomName("formNoValidate")]
bool FormNoValidate { get; set; }

Property Value

bool

FormTarget

Gets or sets A name or keyword indicating where to display the response that is received after submitting the form. If specified, this attribute overrides the target attribute of the form element that owns this element.

[DomName("formTarget")]
string? FormTarget { get; set; }

Property Value

string

IsDisabled

Gets or sets if the button is enabled or disabled.

[DomName("disabled")]
bool IsDisabled { get; set; }

Property Value

bool

Labels

Gets the list of assigned labels.

[DomName("labels")]
INodeList Labels { get; }

Property Value

INodeList

Name

Gets or sets the name of the element.

[DomName("name")]
string? Name { get; set; }

Property Value

string

Type

Gets or sets the type of button.

[DomName("type")]
string Type { get; set; }

Property Value

string

Value

Gets or sets the value.

[DomName("value")]
string Value { get; set; }

Property Value

string