Answers for "disable scroll on overlay"

CSS
0

css prevent scrolling behind overlay

/* Add a 'noscroll' class using JS */
body.noscroll{
    overflow:hidden;
}
Posted by: Guest on February-25-2021

Browse Popular Code Answers by Language