why use <a>
when el.addEventListener('click', () => window.location.href = el.getAttribute('data-url'))
works? 🤷🏻♀️ why indeed y’all
Like this note? let me know!
>(Thanks!)Sure. ⏎
why use <a>
when el.addEventListener('click', () => window.location.href = el.getAttribute('data-url'))
works? 🤷🏻♀️ why indeed y’all