Determines whether this HTML element contains the specified attribute.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
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
if (element.HasAttribute("checked")) { // The element has the "checked" attribute }
See Also