←back to thread

Just use a button

(gomakethings.com)
284 points moebrowne | 2 comments | | HN request time: 0.4s | 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 #
1. Akronymus ◴[] No.45777023[source]
Also, get rid of JS based scrolling. I scroll a lot with pressing the middle mouse button. Too many sites break that.
replies(1): >>45779670 #
2. Findecanor ◴[] No.45779670[source]
Sites that bind the arrow keys so I can't use them to scroll with.