getting mouse position every 3 seconds
<p>I want to get mouse coordinated on page every 3 seconds, but Event object is undefined in setInterval function.</p>

<pre><code>function mouse() {
  console.log(window.event) // =&gt; undefined
}
setInterval(mouse, 3000)
</code></pre>

<p>How to deal with it?</p>
