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