+ 1
My hamburger icon is not working parfectly anyone can help me
3 Réponses
+ 5
This happens because open and close are window methods, these have been invoked in the onclick event in the dom elements.
Close and open methods have been overwritten in the js file, but these are never executed because the dom is loaded first, it means when you press the navbar button what you are doing is opening a new window and then you will see nothing, to resolve this do what 🔫 Rick Grimes said.
+ 2
I have no idea why that happens but I know how to solve it.
There is some kind of problem with function named as "open".
Just change function name to openNav(or any other of your choice) and it will start working.
+ 1
It's working thank you so much