title: javascript function from php like html href
body: <p>I am calling the javascript function from another file in href, I want to know if there is any way to call it in php without using href?</p>
  
  <p>call from href</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript" src="js/myjs.js"&gt;&lt;/script&gt;
  &lt;a href="javascript:NewCal()"&gt;Link1&lt;/a&gt;
  </code></pre>
  
  <p>how can I use "javascript:NewCal()" in PHP echo?</p>