I am making a chrome extension and have this in my popup.html:
<nav id="secondary-nav">
<ul>
<li class="active">Prerender</li>
<li>Prefetch</li>
<li>Preconnect</li>
</ul>
</nav>
What I want to do is to change the active link onclick
in pure JS. How and where can I do that?
Should I make it in the background.js?
Thank you.