Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get class of body

document.body.classList.contains('my-class-name')
 
PREVIOUS NEXT
Tagged: #javascript #class #body
ADD COMMENT
Topic
Name
8+4 =