how to prevent modal from making the page to the top code example Example: javascript disable scrolling on body document.body.style.overflow = 'hidden';