mouse move in another frame

S

Stuart

The following code works well in monitoring the mouse position in its own
frame, I need to capture the mouse position when it is over another frame,
What is the correct syntax?

There is two frames one named "upper" and one named "slave" all my coding is
within the upper fame and I need to capture the mouse position when the
mosue is above the frame named "slave".....I have been using
"parent.slave.document" but ain't getting anywhere!

*********************
document.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0

function getMouseXY(e) {
tempX = event.clientX + document.body.scrollLeft
tempY = event.clientY + document.body.scrollTop
status=tempX+' '+ tempY
return true
}

*********************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top