const preventReloadLinks = container.querySelectorAll('.leftnav-link');
preventReloadLinks.forEach(link => {
addEventListener('click', function (e) {
e.preventDefault()
});
})
Hi Everyone I'm using this piece of code to stop links in the nav causing page reload, it works but unfortunately it stoped (prevented) from click other links on my page to external pages which I want them to work.I tried more specific selector but it the same. How can I stop this behavior or reverse it for the other links. thanks