Last active
November 28, 2022 08:28
-
-
Save prayogateguh/1f8b4f3a5059df5e94de4b76392172e6 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
// Start auto scroll | |
scroll=window.setInterval(function(){window.scrollTo(0,document.body.scrollHeight);},1000); | |
// Stop auto scroll | |
clearInterval(your_number_here); | |
// Stop all interval | |
function clearAllIntervals() { | |
for (var i = 1; i < 99999; i++) | |
window.clearInterval(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment