title: How can I calculate how many characters will fit on the screen?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/875183/how-can-i-measure-how-many-characters-will-fit-the-width-of-the-document">How can I measure how many characters will fit the width of the document?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm developing a mobile website and I've run into a problem.  The site gets the mobile device's screen size and needs to calculate how many characters it can fit on the screen. Once this information is known, a string of that length will be pulled from the server using AJAX.</p>
  
  <p>The problem is, I am not sure how I can perform this calculation using JavaScript.  Does anybody know how I can solve this problem?</p>