I don't have time to be more specific, but just from doing some searching on the internet, it seems like javascript can only return properties of the mouse and not control it directly. Instead of controlling the mouse cursor, couldn't you expose some sort of warning if the user moved outside the element? In other words you are testing where the mouse is and if it is outside a form for example big red ext pops up saying "FILL OUT THE FORM" and once the form is submitted you hide that text.
This solution seems a lot more user friendly that controlling a user's mouse. On Jul 8, 8:29 am, Coxy <stephenbung...@yahoo.de> wrote: > Is it possible with jQuery, or JavaScript for that matter, to trap the > mouse in a div or other tag so that it can only move around in it. I'd > like this for a modal window so thta the user knows that they must do > something in the window first before carrying on.