HtmlElement GetAttribute Method C# API
Gets the value of the specified attribute, or an empty string if the attribute is not contained within this HTML element.

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

public string GetAttribute(
	string name
)

Parameters

name
Type: System String
The name of the attribute from which the value should be returned.

Return Value

The value of the attribute, or an empty string if no attribute with the specified name could be found.
Examples

The following example demonstrates getting the value of the "name" attribute for the HTML element.
// Get the value of the "name" attribute for the HTML element 
string name = element.GetAttribute("name");
See Also