Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Add style to the HTML document with JS

document.head.insertAdjacentHTML("beforeend", `<style>body{background:red}</style>`)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Add #style #HTML #document #JS
ADD COMMENT
Topic
Name
4+1 =