troubleshooting Question

Problem in javascript

Avatar of Steynsk
SteynskFlag for Netherlands asked on
17 Comments4 Solutions302 ViewsLast Modified:
Hi Expert,

I'm rather new to JavaScript. I used some code from the W3school site:

But a strange thing happens when I use this script. I click the menu button and the menu appears I click a link to a page with the same menu and the new page opens with the menu in the initial closed state. But when I click the open link the menu no longer appears .

I think the status is opennav() and opening it up for the second time does not work.

Can I parse in the link to the second page to open up with its menu open?

All help is welcome.

Kind regards,

Join our community to see this answer!
Unlock 4 Answers and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros