简体   繁体   中英

Why won't my javascript code work in a HTML file?

Hi I am new to coding and trying to learn webb developpment. I were following and looking at a tutorial making a hamburger menu but cant get the javascript to work. Am I doing somthing wrong or have a forgot to download somthing in Visual studio code beacause i can't find any erors in the code.

HTML

CSS CSS

Your spelling document wrong

var More = dokument.getElementById('More');
...

Javascript is annoying and will silently fail when an error happens. To view the errors hit f12 in your browser and go to the Console tab, they should show up in a big red banner :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM