The mouse behavior doesn't have that ability, it's not really something webpages allow.
If you use nwjs you could look at its plugin for an action to do it. I haven't looked.
There is also a third party plugin called mouse lock that may be of use to you. You should be able to find it in the third party addons list.
Barring those the only other avenue for a solution is using nwjs and finding a way to make access the mouse position there with either JavaScript or some nwjs specific plugin. It's not really a quick solution at all and would require research to do.