In the previous code snippets that we covered, we only considered examples where we accessed the DOM element. Now, let's consider an example where we change an element's CSS style property. We will hide the content inside the primary content div container by changing the value of the div element's display property.
In order to change the display property of the primary content div container, we will first need to access the div element, and then change it's display property to the none value.
element = document.GetElementById("primaryContent"); ...