javascript set div display to none code example Example: display none js document.getElementById("myDIV").style.display = "none";