modal is not scrolling but background page is scrolling code example Example: javascript disable scrolling on body document.body.style.overflow = 'hidden';