DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+8 =
Submit