: And, are there functions in jscript which gives mouse coordinates Relative to the control? e.g the top left coordinates of a listbox is (0,0) instead of its position on the screen.
: Currently, I use window.event.x and window.event.y to find the coordinates.
for the first answer. I don't know the answer to the second, but you might also find that on w3schools.