Forum Discussion
Closing the side menu if open using a JavaScript trigger
So maybe I wasn't clear. I don't ask why you want to close it; I'm asking why you need to check if it's open. Close it when you start the timeline. If it's already closed, it doesn't change if you close it. Seems to me to be less work, and fewer moving parts. On the other hand, look at what you learned by trying it that way. Maybe it was worth it. :)
Do you know if it's possible to Disable the hamburger menu after hiding it using JavaScript? The "TAB" key can still open the menu even if it's not accessible via the mouse.
- Jürgen_Schoene_9 months agoCommunity Member
you can remove the hamburger button from the tab-key sequence with
document.getElementById("hamburger").tabIndex = -1;
and reactivate the old state with
document.getElementById("hamburger").tabIndex = 0;
if you want, you can also deactivate the hamburger menu (without hiding)
document.getElementById("hamburger").style.pointerEvents = "none";
and reactivate with
document.getElementById("hamburger").style.pointerEvents = "";
- MikeImage9 months agoCommunity Member
Works perfectly. Thank you so much for your help. I was able to do exactly what I intended to do because of your help.