JS: Open dialog over mouse

How to open a js-dialog over mouse-pointer and not always on center?

The dialog object has position, x and y properties which let you place it wherever you want, assuming a Script Dialog.

(If you're just opening a simple requester, not a custom Script Dialog, I'm not sure if they work with those or not.)

The SysInfo object can get you the mouse coordinates.