Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

modify display property javascript

object.style.visibility = "visible";
object.style.visibility = "hidden";

/*
the difference is that if you set display:none, 
it hides the entire element, while visibility:hidden 
means that the contents of the element will be 
invisible, but the element stays in its original 
position and size.
*/
 
PREVIOUS NEXT
Tagged: #modify #display #property #javascript
ADD COMMENT
Topic
Name
2+6 =