By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,136 Members | 1,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,136 IT Pros & Developers. It's quick & easy.

Is it possible to set the mouse position in javascript?

P: 61
My appologies if this sounds stupid, I wish I had a "Comprehensive" reference for javascript. I'm not sure one exists.

I would like to develop a web application that has a learning mode, in which the user is walked through using the site.

I would like to Present information, then reposition the mouse by gradually moving it to a new position, that of a link for example, and then simulate a button click, or tool selection.

I haven't had much luck finding any info on the subject, a definative "Can't be done" would suffice. But no information usually indicates that I haven't looked hard enough.


Dan -
Feb 4 '08 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 5K+
P: 5,333
hi ...

i think there is no way to set! the mousepointers position with javascript ... a page would gain control over your inputdevice and you wouldn't be able to do something :) ... but: you may track the mouseposition and you could move elements to that position ... or just use the focus()-method and some css to focus the node and highlight it in some way ...

kind regards
Feb 5 '08 #2

P: 61
Is there a way to hide the mouse?

Then I could use a mouse shaped bitmap instead.

I notice that sometimes it dis appears.

LIke maybe select a mouse cursor that is completely see through?
Feb 5 '08 #3

Expert Mod 15k+
P: 16,027
I've never tried, but you could try adapting something like this.
Feb 6 '08 #4

P: 1
you can see this link, simulation is possible
Apr 2 '14 #5

Post your reply

Sign in to post your reply or Sign up for a free account.