JS

DISABLE SCROLLING IN JAVASCRIPT

SCROLL BACK TO TOP OF PAGE window.onscroll = () =>    { window.scroll(0, 0); };

FORCE SCROLL

01

SCROLL BACK TO ELEMENT window.onscroll = () => {   document.getElementById("ID")   .scrollIntoView(); };

NO SCROLL, NO TEXT HIGHLIGHT. document.body.style.overflow = "hidden";  document.body.style.userSelect = "none";

HIDE OVERFLOW

02

FULL SCREEN DIV <div style="position:fixed; top:0; left:0;         width:100vw; height:100vh;          z-index:999; background: white;         display:none;" id="box">    CONTENT HERE </div>

FULLSCREEN WRAPPER (A)

03

FULLSCREEN WRAPPER (B)

04

JAVASCRIPT TO TOGGLE VISIBILITY document.getElementById("box").style   .display  = "block";  document.getElementById("box").style   .display  = "none";