set element display none javascript code example
Example 1: display none js
document.getElementById("myDIV").style.display = "none";
Example 2: display none java script
<style>body{display:none;}</style>
document.getElementById("myDIV").style.display = "none";
<style>body{display:none;}</style>