←back to thread

Just use a button

(gomakethings.com)
284 points moebrowne | 2 comments | | HN request time: 0.521s | source
Show context
lyricaljoke ◴[] No.45775130[source]
My very similar pet peeve is about websites that use `onclick` handlers and similar to implement navigation. Just use a damn anchor tag, which gets you correct link behavior for free:

* works with middle click for new tab

* integrates with accessibility devices

* works with right click + open in new window or similar options

* etc. etc. etc.

If it's notionally navigation, don't use javascript soup: use a link.

replies(11): >>45775742 #>>45775887 #>>45776191 #>>45776485 #>>45776938 #>>45776972 #>>45777023 #>>45777190 #>>45777640 #>>45779426 #>>45779654 #
Findecanor ◴[] No.45779654[source]
I tend to open most links with a right click and then the first menu option: "Open link in new tab", and done so fast enough that I have not actually read the menu. But when the "link" is not a link but just an image, I have then instead clicked on "Open image in new tab".

This has especially been annoying when I have happened to use DuckDuckGo's image search instead of Google's or Bing's and instead of having opened ten tabs with links, I have ten tabs with a thumbnail in each ...

replies(1): >>45779741 #
1. johntash ◴[] No.45779741[source]
In case you want to save a few seconds of your life, you can also middle click or ctrl click instead of right clicking + left clicking on the menu.
replies(1): >>45784998 #
2. Hemospectrum ◴[] No.45784998[source]
...Except on websites that override this to make those links open in the current tab, or just silently fail.

On the modern web, the menu is more reliable.