mouse cursor position in Javascript?
<p>How do I get cursor X and Y in javascript?</p>

<pre><code>var $curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var $curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
</code></pre>

<p>I had found this two, but they appear as "undefined". Any ideas?</p>

<p>Thanks!</p>
