title: how to call a onclick function in <a> tag?
body: <p>i want to open a new window on click of 1</p>
  
  <pre><code>$leadID = "&lt;a href='javascript:onclick=window.open(lead_data.php?leadid=1, myWin, scrollbars=yes, width=400, height=650);'&gt;1&lt;/a&gt;";
  </code></pre>
  
  <p>it is not showing me error. is there any other way to open new window.</p>
  
  <p>here is the fiddle
  <a href="http://jsfiddle.net/ankurdhanuka/uwypv/" rel="noreferrer">http://jsfiddle.net/ankurdhanuka/uwypv/</a></p>
  
  <p>Thanks in advance.</p>