Solved

DIV Visibility Checking

Posted on 2000-04-14
1
400 Views
Last Modified: 2009-07-29
Is there a way to check visibility of a DIV, like:
if (obj.visibility == "hidden")

Thanks.
0
Comment
Question by:BartS
1 Comment
 
LVL 22

Accepted Solution

by:
CJ_S earned 100 total points
Comment Utility
yessssssss!!!!

if(document.divname.style.visibility=="hidden")
   alert("div is showing")


this is voor IE.....for Netscape you hafta get lost of the 'style' and use the word 'hide' instead of hidden
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now