Can I make custom url for using particular event in javascript? For ex. index website has following code and if I type domain.com/menu the website will load with nav-open?
var navTrigger = document.getElementsByClassName('menu-toggle-click-area')[0],
body = document.getElementsByTagName('body')[0];
navTrigger.addEventListener('click', toggleNavigation);
function toggleNavigation(event) {
event.preventDefault();
body.classList.toggle('nav-open');
}