how to disable scroll when modal with css code example Example: javascript disable scrolling on body document.body.style.overflow = 'hidden';