Fancybox force scroll to top
Posted
by Bradley Herman
on Stack Overflow
See other posts from Stack Overflow
or by Bradley Herman
Published on 2010-04-08T18:02:45Z
Indexed on
2010/04/08
20:23 UTC
Read the original article
Hit count: 377
I'm using the jQuery Fancybox plugin to display some content on a website. Unfortunately, when a link is clicked, the lightbox that is loaded starts at the same scroll position as the previous one. I tried using self.scrollTo(0,0) $.scrollTo(0) $('#top').scrollTo();
and a few others methods to push it back to the top, but none have seemed to work. Any help on this?
© Stack Overflow or respective owner