+ 1

My hamburger icon is not working parfectly anyone can help me

https://code.sololearn.com/WCD2CTt7a1VI/?ref=app

11th Jun 2020, 5:09 PM
Tina_Agrawal
Tina_Agrawal - avatar
3 Answers
+ 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.
12th Jun 2020, 2:38 AM
CoffeeByte
CoffeeByte - avatar
+ 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.
11th Jun 2020, 6:10 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
It's working thank you so much
12th Jun 2020, 3:53 AM
Tina_Agrawal
Tina_Agrawal - avatar