style to hide a div from html page itse;f code example Example: how to hide div in html document.getElementById('elementName').hide();