a
b
c
cx
cy
d
dx
dy
e
f
fx
fy
id
in1
in2
k1
k2
k3
k4
r1
r2
x
x1
x2
y
y1
y2
z
Expand Minimize

className property

Gets the names of the classes that are assigned to this object.

Scalable Vector Graphics: Basic Data Types and Interfaces, Section 4.5.22Internet Explorer 9

Syntax

JavaScript
p = object.className

Property values

Type: Object

A class name or set of class names. Multiple class names are separated by white space characters.

Standards information

Remarks

The className property gets the names of the classes that are assigned to this object. The object belongs to these classes. Several object instances can share a class name.

The className property has several roles:

  • As a style sheet selector (when you want to assign style information to a set of elements).
  • For general purpose browser processing.

See also

SVGAElement
SVGCircleElement
SVGClipPathElement
SVGDefsElement
SVGDescElement
SVGEllipseElement
SVGFilterElement
SVGGElement
SVGGradientElement
SVGImageElement
SVGLinearGradientElement
SVGLineElement
SVGMarkerElement
SVGMaskElement
SVGPathElement
SVGPatternElement
SVGPolygonElement
SVGPolylineElement
SVGRadialGradientElement
SVGRectElement
SVGStopElement
SVGSVGElement
SVGSwitchElement
SVGSymbolElement
SVGTextContentElement
SVGTextElement
SVGTextPathElement
SVGTextPositioningElement
SVGTitleElement
SVGTSpanElement
SVGUseElement

 

 

Show:
© 2014 Microsoft