document.body.style.overflow = 'hidden' not working code example Example: overflow hidden overflow: hidden;