Document.GetElementsByClassName

Document.GetElementsByClassName method

Returns a live NodeList object containing all the elements in the document that have all the classes specified in argument. http://www.w3.org/TR/dom/

public HTMLCollection GetElementsByClassName(string classNames)
ParameterTypeDescription
classNamesStringThe string string that contains an unordered set of unique space-separated tokens representing classes (class names)

Return Value

The Element.

See Also