DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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 stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#js
#add
#class
#html
ADD COMMENT
Topic
COMMENT
Name
8+7 =
Submit