It works fine on firefox and chrome,but safari seem to have some issue.Here is the code. function founders() { var scrollPos = $(window).scrollTop(); if (scrollPos == 900) {
Solution 1:
try
var scrollPos = $("body").scrollTop();
webkit browsers always render window/html scrollTop as zero.
Post a Comment for "$(window).scrolltop() Is Not Working In Safari"