Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js add class to html

const root = document.getElementsByTagName('html')[0]
root.classList.add('hide-scrollbar')
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #add #class #html
ADD COMMENT
Topic
Name
3+3 =