how to change the display property using DOM code example Example: display none js document.getElementById("myDIV").style.display = "none";