title: Convert pixel to percentage using javascript
body: <p>I have a table header's width in pixel. on click of a function i need to convert pixel to percentage.</p>
  
  <pre><code>&lt;th field="Column1" id="Column1" noresize="true" width="100px"&gt;
      &lt;label id="Column1" onclick="getCustomGridColName(this.id,'inner__fghgh');" style="cursor:pointer; font-family: Times; font-size:12pt;"&gt;
          Column1
      &lt;/label&gt;
  &lt;/th&gt;
  </code></pre>