display element which is display none JavaScript code example Example: display none js document.getElementById("myDIV").style.display = "none";