The position of the mouse is sent as parameter with the click event. see: http://docs.jquery.com/Tutorials:Mouse_Position
If you want to position the dialog absolute to the link (and not the mouse pointer) you could use $(link).position to get the position of your link. see: http://docs.jquery.com/CSS/position http://docs.jquery.com/CSS by(e) Stephan 2009/1/27 Adam <apcau...@gmail.com>: > > I'd like to open a dialog when a link is clicked, and have the dialog > open beside the link, similar to a tooltip. > > Are there any examples on how to calculate the position where the > dialog should show up? What's the best way to position it so that it > shows within the confines of the page (i.e. if the link is right- > aligned, the dialog should popup to the left of the link, etc.).