Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript pesudo element getComputedStyle return undefined Reply To: pesudo element getComputedStyle return undefined

#266354
Shikkediel
Participant

Only cause I can think of without seeing a demo is that you’ve put the code in the head section without a document ready wrapping function. Which means the script is executed before the page has been read (and the element “exists”).