Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7775505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:38:53+00:00 2026-06-01T17:38:53+00:00

I am running in a bit of a problem here trying to figure out

  • 0

I am running in a bit of a problem here trying to figure out this one.
I already coded a jquery function that detects when the user hits the bottom of the page and trigger an function.
Now, while this works alright for the most common screen-sizes, it will not work when the user has a screen so big that sees the entire page at once, rendering the previous function useless.

What I am trying to achive is the fallback for those cases, how can I tell if the user has such a screensize that will trigger the function and leave the rest to the other?

Better explained: How to detect if the user browser-height is equal or greater than the page body height?

Sorry if this looks a bit confusing.

PS: The following code is the one I am using when the browser-height is smaller than the page body-height.

    if ($('body').height() <= ($(window).height() + $(window).scrollTop())) {
        //run function here when the browser-height is smaller than
        //the page's height and it has reached the bottom
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:38:55+00:00Added an answer on June 1, 2026 at 5:38 pm
        if ($(document).height() <= $(window).height() ) { }
    

    $(document).height(); // returns height of HTML document

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running into a bit of problem when trying to post data asynchronously. Here's
I apologize if this question is slightly subjective... I am trying to figure out
I'm using MVC3 & EF4, running into a bit of a problem when trying
I'm running into a bit of a problem on a site I'm trying to
I'm running into a bit of problem when trying to readToEnd from an asynchronous
Am quite running out of ideas, Here is what am trying to do ,
I'm running 32-bit Windows 7 Enterprise and CodeBlocks 10.05. I followed this tutorial to
I am running 32-bit Windows 7 and Python 2.7. I am trying to write
I am just trying to get Hadoop running on my laptop running 64-bit Windows
I'm running into a bit of dilemma at the moment in that I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.