title: How to set the value for an HTML element from external javascript
body: <p>I'm using an external javascript file (eg:<code>myjs.js</code>) with function <code>setval()</code> to set the <code>innerText</code> property of a HTML lable.</p>
  
  <p>I have PHP page with <code>&lt;lable id="abc"&gt;&lt;/lable&gt;</code> and I have included <code>myjs.js</code> in <code>&lt;head&gt;</code> section. <code>myjs.js</code> is included in <code>&lt;head&gt;</code> section of one more PHP file and I'm calling <code>setval()</code> from this file, so when it runs it must set the <code>innerText</code> of lable in the first PHP file.</p>
  
  <p>Is it possible to achieve? Any suggestions are greatly appreciated. 
  I hope I made question clear.</p>
  
  <p>Thanks</p>