css prevent scrolling under overlay code example
Example 1: css prevent background scrolling
<body scroll="no" ></body>
or css
background-attachment: fixed;
Example 2: css prevent scrolling behind overlay
/* Add a 'noscroll' class using JS */
body.noscroll{
overflow:hidden;
}