css disable scroll on body code example
Example 1: javascript disable scrolling on body
document.body.style.overflow = 'hidden';
Example 2: css prevent background scrolling
<body scroll="no" ></body>
or css
background-attachment: fixed;
document.body.style.overflow = 'hidden';
<body scroll="no" ></body>
or css
background-attachment: fixed;