HOME / BLOG / BLOG-POST

How to get window height on scroll?

Get window height on scroll

$(window).scroll(function(){ 
   var hght = $(window).scrollTop(); 
   console.log(hght);
});

 


about authors

Sandip Das

Web Developer

Once a legend said “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler.



POST COMMENTS

Leave a Reply

Your email address will not be published. Required fields are marked *