how to display text hide and more in javascript code example Example: how to hide div in html document.getElementById('elementName').hide();