DEV Community

egfx
egfx

Posted on • Edited on

Answer: Move the mouse pointer to a specific position?

Really, truly. A brilliant Answer to one of life's most interesting questions. Anybody else know what I'm talking about?


title: "Answer: Move the mouse pointer to a specific position?"

published: true

You could detect position of the mouse pointer and then move the web page (with body position relative) so they hover over what you want them to click.

For an example you can paste this code on the current page in your browser console (and refresh afterwards)

var upvote_position =

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more