Created
January 22, 2023 12:46
-
-
Save Prosen-Ghosh/e953cd5395d83c9180634c9b6a4f3d14 to your computer and use it in GitHub Desktop.
This file contains 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
// Disable scrolling | |
document.getElementById("content-area").style.position = "fixed"; | |
document.getElementById("content-area").style.top = "0"; | |
// Enable scrolling | |
document.getElementById("content-area").style.position = "relative"; | |
document.getElementById("content-area").style.top = "auto"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment