DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
check if body has class javascript
document.body.classList.contains('my-class-name')
Source by codetogo.io #
PREVIOUS
NEXT
Tagged:
#check
#body
#class
#javascript
ADD COMMENT
Topic
COMMENT
Name
5+9 =
Submit