Retrieving content value of ::after or ::before in JavaScript
For the following element:
#element::after {
content: 'Custom value'
}
If we needed a way of retrieving content value of ::after in JavaScript, that is ‘Custom value’, we would need to make use of the getComputedStyle() method available on the wind...
wisdomgeek.hashnode.dev1 min read