5 ms·
> Making it impossible to right click the link and open a new tab Keeping `<a href="/some/path">Place</a>` but adding an event listener to capture your click a
by post-it 5y ago
> Making it impossible to right click the link and open a new tab
Keeping `<a href="/some/path">Place</a>` but adding an event listener to capture your click and run some JS instead fixes that particular issue but opens a whole other can of shit.
- dorgo 5y agofor example?
- delecti 5y agoGoogle does it. Search any query, hover over a link, and then click the link. While hovering (pre-click) you'll see the actual target link, but once you click it redirects through some Google tracking nonsense.
- chrisweekly 5y ago20 years ago this was called "unobtrusive javascript" and it's still a good idea today. BTW, https://remix.run https://remix.run is a sweet new framework that properly embraces progressive enhancement, ie almost everything works with JS disabled.