...

View Full Version : How to keep mouse within a window?



docco
09-24-2012, 02:28 PM
I want to keep mouse within an area or within a window, can not move out, by javascript.
It is very appreciated if having some guides.
Thanks in advance

nomanic
09-24-2012, 02:36 PM
you cant do that, if they could, mouse could never even leave the browser your page was on to access other applications!

docco
09-24-2012, 05:15 PM
First, I want to change to mouse position. Is there a javascript to do that?

felgall
09-24-2012, 10:29 PM
JavaScript can only read the current position of the mouse - it is not able to actually move the mouse.

You can move the web page using JavaScript so if you need the mouse over a specific spot in the page then you could move the page to put that spot under the mouse (as long as the mouse is still over the web page).

WolfShade
09-25-2012, 01:32 PM
you cant do that, if they could, mouse could never even leave the browser your page was on to access other applications!
Or, more importantly, to close the browser.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum