After looking for several hours and not finding an answer either way I decided to come to you, oh great community of people who I always look to for help. I have an iframe that when scrolled by my user, they leave, then come back, we’d like to use scrollto to bring back to the right position. So how can I save/export/add to variable the x and y of this iframe or is that impossible?
Share
You can save the x,y variables to cookie using this jquery plugin: https://github.com/carhartl/jquery-cookie
Example:
Where the id of your element your want to scroll is “yourElementId”.