title: textwidth of innerHTML in javascript
body: <p>I am trying to get the textwidth of innerhtml in Javascript.</p>
  
  <p>Tried clientwidth,$(p.width()) but still unable to get it.Can anyone please help. PFB the sample code</p>
  
  <pre><code>&lt;div class="watermark"&gt;
   &lt;p&gt;ABCDEFGH&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>