Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at

An SVGPoint represents a 2D or 3D point in the SVG coordinate system.


retObject = SVGElement.createSVGPoint()


The returned value is a SVGPoint object.


//create the SVGPoint in the user coordinate system 
var s = document.getElementById("SVG-ElementID").createSVGPoint();

//then set the x and y values of the returned SVGPoint object which is s
s.y = 10, s.x = 10;



Document Tags and Contributors

 Last updated by: Tonyshih,