🔰scroll lock

🔰 JSbrowserDOMtypesWindowscrolling ⟩ lock

function lockScroll(locked=true){
    document.body.style.overflow = locked ? "hidden" : '';
}

Last updated