javascript STYLE display
| display | NN 6 IE 4 DOM 2 | |||||||||||||||||||||||||||||||
| Read/Write | ||||||||||||||||||||||||||||||||
|
Controls the CSS box type used to render the element. The most common settings for body content dictate whether an element is rendered as a block or inline element. When set to none, the element is hidden, and surrounding content cinches up to fill the space. Some box types are specific to tables and lists. |
||||||||||||||||||||||||||||||||
| Example | ||||||||||||||||||||||||||||||||
document.getElementById("instructionDiv").style.display = "none";
|
||||||||||||||||||||||||||||||||
| Value | ||||||||||||||||||||||||||||||||
Any one display type constant as a string, as supported by various browsers and versions. |
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
| Default | ||||||||||||||||||||||||||||||||
Element-dependent. |
||||||||||||||||||||||||||||||||
Previous: javascript STYLE elevation
1840,Nickname,Homepage or email,Comments here,Add comment
