title: Is there any difference betweeen: onClick="this.href= inside an <a> tag versus a js redirect using "window.location.href"?
body: <p>Basically the title says it all but I am running a customer aff-program on my shopping site and it seems one of my aff's gets a "abnormal"  results although I'm not sure. This made me thinking if there is any differences (on my side) referral wise etc. if the aff in question is using js redirect instead of my aff-link structure? </p>
  
  <p>My structure: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="http://www.myshop.com" onClick="this.href='http://www.myshop.com/aff.php?affcode=0000'" /&gt;LINK&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Suspected structure:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script type="text/javascript"&gt;window.location.href="http://www.myshop.com/aff.php?affcode=0000";&lt;/script&gt; </code></pre>
  </div>
  </div>
  </p>
  
  <p>or something similar, I am not a coder/programmer as you notice, perhaps the suspected code is wrong but you get the point with the js redirect.  </p>
  
  <p>Will these two give different output/referral/stat (on my side) or same? </p>