Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js scroll to bottom

function scrollToBottom() {
  const scrollingElement = document.scrollingElement || document.body
  scrollingElement.scrollTop = scrollingElement.scrollHeight
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #scroll #bottom
ADD COMMENT
Topic
Name
7+3 =