Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

style before and after javascript

var styleElem = document.head.appendChild(document.createElement("style"));

styleElem.innerHTML = "#YOUR_DIV:before {background: black;}";
 
PREVIOUS NEXT
Tagged: #style #javascript
ADD COMMENT
Topic
Name
5+5 =