//'link-nav' is the Id of the div
const link = document.getElementById('link-nav');
//When clicked, the page scrolls by 100%
link.addEventListener('click', () => { window.scrollBy(0, screen.height);})
This only works once, after which the click event doesn't have any effect until I refresh the page. Please how can I correct this
Ps: The div position is fixed at the bottom of the screen