Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to access ::after Pseudo-Elements from javascript

var str = "bar";
document.styleSheets[0].addRule('p.special:before','content: "'+str+'";');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #javascript
ADD COMMENT
Topic
Name
6+8 =