0

Is it possible using javascript to automatically position the mouse pointer upon page load, so that it is hovering over a specified "div" when the page loads, regardless of where the user had their mouse pointer positioned prior to page load?

I've seen a few posts upon searching in relation to automatically positioning mouse cursers in text fields on page load, but not positioning the mouse pointer on page load.

4
  • 1
    I dont think we can do that automatically Commented Nov 20, 2013 at 16:01
  • If you are using script trigger the hover functionality then you can manually trigger the mouse events... but actually positioning the mouse seems to be impossible Commented Nov 20, 2013 at 16:02
  • Its OS stuff, and it makes sens to me, that this cant be done... Commented Nov 20, 2013 at 16:07
  • It would be a security risk for the browser to expose that kind of control to websites. Not to mention just plain bad UX. The user does not want you messing with their cursor. Commented Nov 20, 2013 at 16:07

1 Answer 1

0

Fortunately there's no way to position the mouse pointer! Why do you want to force the use behaviour anyway? You could focus on input fields onLoad or use your screen design to guide the user to the required location if this is helpful for you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.