The SVG Element.className property is used to return the className of the given Element.
Syntax:
var cName = element.className
Return value: This property returns the className of the Element.
Example 1:
Output:
Example 2: