Created
January 6, 2026 09:59
-
-
Save paulcarroty/0c1b97217f6c94b2ee13d5dc77a06a4e to your computer and use it in GitHub Desktop.
js hide scrollbar in browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.documentElement.style.overflow = 'hidden'; | |
| document.body.style.overflow = 'hidden'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment