Answers for "hide scrollbar from js"

CSS
0

javascript hide scrollbar

// You can hide the document scrollbar with this...
document.body.style.overflow = 'hidden';
//...and unhide it with this:
document.body.style.overflow = 'visible';

// Or switch between them:
booleanCondition
  ? document.body.style.overflow = 'hidden'
  : document.body.style.overflow = 'visible';
Posted by: Guest on December-08-2020
0

how to hide scrollbar html

<style type="text/css">
    body {
        overflow-y: hidden;
    }
</style>
Posted by: Guest on July-10-2021

Browse Popular Code Answers by Language