Learning Story
Sign In
Join Learning Story
Feed
Leaderboard
FAQ
Support
Daniel Schwarz
2 months ago
Front-end development
I discovered elem.getComputedStyle();
Discuss (2)
Tweet
Daniel Schwarz
2 months ago
Actually, the syntax should be:
window.getComputedStyle(elem).backgroundColor;
Dmitrii Pashutskii
2 months ago
WOW 🤯 I didn't know it's possible to get computed style in JS.
Send feedback
Help us to build better product
Send feedback
Send us feedback
Your email (optional)
Any suggestions, feature requests, bug reports.
Cancel