click mouse position with scroll in javascript
<p>I have code to get x-y coordinates when the browser scrolls:</p>

<pre><code>left1 = window.event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
top1 = window.event.clientY + document.body.scrollTop + document.documentElement.scrollTop;
</code></pre>

<p>This is working in IE7, but not in Mozilla Firefox 3.5.19. How can I get it working in Firefox?</p>
