Related to this question Changing CSS pseudo-element styles via JavaScript, is there any way using javascript that I can access a pseudo-element’s style attributes?
Related to this question Changing CSS pseudo-element styles via JavaScript , is there any
Share
It depends on the browser. I don’t believe IE supports this in any way, but for FireFox and Webkit browsers, you can use the following:
For example:
See: getComputedStyle