'visibility' Example : visibility : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » visibility »

 

'visibility' Example



    
<html>
<body>
<p>
<img id="myImg" src="http://www.navioo.com/style/logo.png">
</p>
<input type="button" 
       value="Set visibility property to hidden"
       onclick="myImg.style.visibility='hidden'">
       
<input type="button" 
       value="Set visibility property to visible"
       onclick="myImg.style.visibility='visible'">
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» visibility