title: Get Position of text inside a HTML element
body: <p>I am trying to detect the position of text inside a HTML element (assume, <code>&lt;div&gt;</code> tag) (top, left, bottom and right coordinates) on the screen. I have tried offsetLeft, and offsetWidth. But, it doesn't help. Please help.</p>
  
  <p>Thanks.</p>