Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai Frnds...

What is the visibility and Hidden Property in Java Script.....???
Posted

Specifies or returns whether the element is visible.

This property is useful if you want to hide or show the contents of an element.

Similar to display property, but
if you set the visibility property to 'hidden', only the contents of the element will be invisible, the element stays in its original position and size.

The display property with value 'none' hides the entire element.

Have a look on following example which shows the use of the visibility property:
JavaScript
<head>
    <style>
        .visible {
            visibility: visible;
        }
        .hidden {
            visibility: hidden;
        }
    </style>
</head>
<body>
    <div class="hidden">A hidden element</div>
    <div class="visible">A visible element</div>
    There is an invisible element at the first line of the page
</body>

Found it: here[^]

Look at these JavaScript tutorials:
javascript tutorial[^]
Quick Links for Javascript Developers[^], for more details.
 
Share this answer
 
Comments
__TR__ 24-Aug-12 3:00am    
Nice explanation. My 5!
Prasad_Kulkarni 24-Aug-12 4:15am    
Thank you TR!
RiswanulZaman 24-Aug-12 6:35am    
Hai...

How to get access of Google safe search setting without using any web service(api)..? Is it Possible???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900