How to get return value from mouse capturing function?
<p>How to get return value from mouse capturing function?</p>

<pre><code>        function getMousePosition(e) 
        {
            positionX = e.pageX;
            positionY = e.pageY;

            if (positionX &lt; 0){positionX = 0;}
            if (positionY &lt; 0){positionY = 0;} 

            return positionX + " " + positionY;
        }
</code></pre>

<p>as in <code>var mousePositions =  getMousePosition(e);</code></p>
