Forum Moderators: open
Let me try to make it clear
"When you click on the link I want the popup window right next to it, no matter if you scrolled down and the link is in the bottom of the page or you scrolled up and the link is on the top of the page"
Any comment would help.
"When you click on the link I want the popup window right next to it, no matter if you scrolled down and the link is in the bottom of the page or you scrolled up and the link is on the top of the page"
You can read the screen position where an event occurs with event.screenX and event.screenY. However, a link occupies some extended screen geography, not just one spot, so the onclick event could be fired anywhere in the link's active area. That makes it hard to write a script that uses the position data for the event and always opens the new window in the right spot.