title: JavaScript How to get data of an "a" tag when it has been clicked?
body: <p>Good day! For example I have this code:</p>
  
  <pre><code>&lt;a href="link" onclick="myfunc()"&gt;Secret link&lt;/a&gt;
  </code></pre>
  
  <p>How can I transmit its values such as: href, and name to the onclick event without defining it in the <strong>myfunc('link', 'name')</strong> explicitly? 
  Maybe, there is something like:</p>
  
  <pre><code>&lt;a href="link" onclick="myfunc(this)"&gt;Secret link&lt;/a&gt;
  </code></pre>
  
  <p>P.S. I do not use JQuery</p>