SHARE
TWEET

Untitled

a guest Jul 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(window).scroll(function() {
  2.         if(($(window).scrollTop() + $(window).height() >= $(document).height())  ){
  3.             //*Load More data function
  4.         }
  5. }
  6.      
  7. $(function () {
  8. $("#iframeid").load(function () {
  9.     var iframe = document.getElementById("iframeid").contentWindow;
  10.     $(iframe).scroll(function () {
  11.         if (   $(iframe).scrollTop()==$(iframe).height()-$("#iframeid").height()) {
  12.             alert("Reached bottom!");            
  13.         }
  14.     });
  15. });
  16. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top