I\'m working on some ECMAScript/JavaScript for an SVG file and need to get the width and height of a text element so I can resize a re
width
height
text
document.getElementById('yourTextId').getComputedTextLength();
worked for me in