Would like to know how to handle when the page is loaded in one of menu links.
<ul>
<li><a href="#link1"></a></li>
<li><a href="#link2"></a></li>
<li><a href="#link3"></a></li>
</ul>
when the URL starts with #link1 or #link2 or #link3, manipulate:
if('example.com/#link1') {
alert('link1');
} else if ('example.com/#link2') {
alert('link2');
} else if ('example.com/#link3') {
alert('link3');
}