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 9090289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:20:23+00:00 2026-06-16T22:20:23+00:00

I want to detect if is not visible in browser window for an interactive

  • 0

I want to detect if is not visible in browser window for an interactive map i am building. if the div is not visible I will show a popup saying “this way” or something like that. The main issue is detecting when the div is not visible in the document window.

  • 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-16T22:20:25+00:00Added an answer on June 16, 2026 at 10:20 pm

    What I gather from your question is you want to detect if a div can be seen on the visible portion of the screen, NOT whether it’s visible based upon its CSS (display, visibility).

    If so, you need to determine the div’s offset, then check if that’s within the bounds of either the document dimensions, or another element’s dimensions.

    Something like this (assuming you’re using jQuery)…

    var div_offset = $('#div').offset();
    
    if( div_offset.top < $(document).height() &&
        div_offset.left < $(document).width() ) {
        // div is within window bounds
    }
    

    This is a very basic example. You would of course need to factor in how much of the div element you would want to showing for it to be considered “visible”… the above code would be true even if only the single top/left pixel of the div sits within the document bounds. Do this by perhaps testing if the bottom right corner is showing by adding the width/height to the offset.

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

Sidebar

Related Questions

I want to detect browser close (not the window(tab)) and run a script. I
I have this problem. I want to detect if there is not a session
I want to detect if this text field is empty or not and then
Edited // I want to detect flash support ( not user string agent )
I want to detect if remote website allows to stand under iframe or not.
I want to detect changes for a file, if the file changes, I will
I want to detect multi accounts in a browser game: If a user has
I want to detect whether an alert is popped up or not. Currently I
From web, I want to detect if our application has been installed or not.
I want to detect whether or not a subrange of an array contains the

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.