title: changing a page with delay and eventListener set to click works regardles of the click
body: <p>im trying to change an html page with a delay of 3 sec when the user clicks on a specific div in the screen.</p>
  <pre><code>document.getElementById(&quot;specificDiv&quot;).addEventListener(&quot;click&quot;, setTimeout(document.getElementById(&quot;linkToAnotherPage&quot;).click(), 3000) )
  </code></pre>
  <p>however the eventListener doesnt work. when the page loads up it automatically clicks on the &quot;linkToAnotherPage&quot; after 3 sec have past since loading the page.</p>
  <p>would love if someone could help me understand whats wrong here.</p>