Is there a way to measure text in javascript? I want to determine if the text has overflowed the container and then perform an operation based upon that eventuality. The text is added to the container programatically so I could do the test after that is done.
I was thinking the only way would be to allow a scroll bar and then see if I can move it - but am hopeful there is an easier way that might help me to know how exactly how much text causes the overflow of the default container's width and height.
Thanks
I was thinking the only way would be to allow a scroll bar and then see if I can move it - but am hopeful there is an easier way that might help me to know how exactly how much text causes the overflow of the default container's width and height.
Thanks