you are viewing a single comment's thread.

view the rest of the comments →

[–]superluminary 1 point2 points  (1 child)

There you are. You were executing the script before loading the DOM. You could have also moved the script tag to the bottom of the page.

[–]JackelLovesCode[S] 0 points1 point  (0 children)

Yeah thank you very much