Home › Forums › JavaScript › pesudo element getComputedStyle return undefined › Reply To: pesudo element getComputedStyle return undefined
February 7, 2018 at 2:49 pm
#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”).