title: OnClick activating on page load/refresh
body: <p>I have a link which, when the page is called or refreshed, runs.</p>
  
  <p>As this is set to execute onclick, this should not be happening.</p>
  
  <p>I had a sneaking suspicion that because I had left the path empty in <code>href</code> that it might be causing the issue, but adding in a file location does not change the outcome.</p>
  
  <pre><code>&lt;a href="" onClick="&lt;?php exec('sudo python /var/www/html/lightson.py'); ?&gt;"&gt;&lt;img src="lightm.png" width="128" height="128"&gt;&lt;/a&gt;
  </code></pre>