display none in javascript code example
Example 1: display none js
document.getElementById("myDIV").style.display = "none";
Example 2: javascript display block
document.getElementById("someElementId").style.display = "block";
Example 3: display none javascript
document.getElementById("elemID").style.display = "none";
document.getElementsByClassName('elemClass').style.display = "none";
document.getElementsByTagName("LI").style.display = "none";
document.getElementsByName("fname").style.display = "none";
Example 4: display none java script
<style>body{display:none;}</style>