title: autoClick at the same time error
body: <p>i create two button in index.html. The two buttons will function differently. I'm trying to give the autoclick function to both, but I get an error.</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
  &lt;script&gt;
  function autoClick(){
  document.getElementById('linkToClick').click(); }
  &lt;/script&gt;
  
  &lt;script&gt;
  function autoClick(){
  document.getElementById('linkToClick2').click();}
  &lt;/script&gt;
  &lt;head&gt;
  
  &lt;body onload="setInterval('autoClick();',5000);"&gt;   
  &lt;button  type="" id="showNotifications" &gt;
  &lt;a id="linkToClick" target="_blank" &gt;Bildirim yolla&lt;/a&gt;
  &lt;/button&gt;
  &lt;/body&gt;
  
  &lt;body onload="setInterval('autoClick();',1000);"&gt;   
  &lt;button  type="" id="showNotifications3" &gt;
  &lt;a id="linkToClick2" target="_blank" &gt;Bildirim&lt;/a&gt;
  &lt;/button&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>The two buttons are sending notifications. Haven't problem. But they are auto clicking at the same time. Why "showNotifications3" button doing an autoclick in 5 seconds, not in 1 second?</p>