Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: open
Right now it will display at the top left corner which is fine on shorter pages where the user doesn't scroll down.
But if the user has scrolled down the page several times, and then clicks on the link, it will display the div way at the top of the page where it can't be seen (because the user has scrolled down so far).
So, if the user had scrolled down 1500px from the top of the page, then I could get this y value of 1500 so I could then set things up to place the div right at the top based on where the user is currently viewing the page?
Or is there a way to get a div to always display at the top of the browser window currently being viewed regardless of how far down the user has scrolled?