JavaScript: Measure the Visual Length of a String Measure the visual length of a string in JavaScript. Build a ruler that can measure string length in pixels. Continue reading on JavaScript in Plain English ยป Click here to read the article