HtmlElement HasAttribute Method C# API
Determines whether this HTML element contains the specified attribute.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.5.77 (1.0.0.0)
Syntax

public bool HasAttribute(
	string name
)

Parameters

name
Type: System String
The name of the attribute to look for.

Return Value

true if this HtmlElement contains this attribute; otherwise, false.
Examples

The following example demonstrates checking to see if an element contains the "checked" attribute.
if (element.HasAttribute("checked"))
{
    // The element has the "checked" attribute
}
See Also